Commit a1461f53 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files fix type checking

parent 2b59eb06
Pipeline #61846 passed with stages
in 6 minutes and 46 seconds
......@@ -369,7 +369,7 @@ def get_custom_data():
if not "custom" in request.vars :
error += "no file selected, "
samples = request.vars['custom'] if request.vars['custom'] is list else [request.vars['custom']]
samples = request.vars['custom'] if type(request.vars['custom']) is not str else [request.vars['custom']]
if not samples:
error += "incorrect query, need at least one sample"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment