Skip to content

Commit

Permalink
change > to != 1
Browse files Browse the repository at this point in the history
  • Loading branch information
notoriousno committed Jan 9, 2017
1 parent 7d43d39 commit 5d929d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/klein/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def getArg(self, key):
"""
key = ensure_utf8_bytes(key)
value = self.arg[key]
if len(value) > 1:
if len(value) != 1:
raise ValueError('Too many values for: {0}'.format(key))
return value[0]

Expand Down

0 comments on commit 5d929d5

Please sign in to comment.