Commit a1461f53 authored by Mathieu Giraud's avatar Mathieu Giraud

default.py: 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, "
else:
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"
else:
......
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