Skip to content

Commit

Permalink
Fix incorrect guard
Browse files Browse the repository at this point in the history
  • Loading branch information
horazont committed Oct 1, 2019
1 parent 70c62ef commit 14f4faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion muchopper/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def api_rooms_safe():
request.args, "min_users",
int,
)
if not (0 <= min_users <= 4294967296):
if min_users is not None and not (0 <= min_users <= 4294967296):
raise ValueError("min_users invalid")
except ValueError:
return abort(400)
Expand Down

0 comments on commit 14f4faf

Please sign in to comment.