Commit c065cec8 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

astakosclient: Fix bug in checking arguments

parent 04aed340
......@@ -98,7 +98,7 @@ def parse_request(request, logger):
def check_input(function_name, logger, **kwargs):
"""Check if given arguments are not None"""
for i in kwargs:
if not kwargs[i]:
if kwargs[i] is None:
m = "in " + function_name + ": " + str(i) + " parameter not given"
raise BadValue(m)
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