Skip to content

Commit

Permalink
Fix difficulty validator.
Browse files Browse the repository at this point in the history
  • Loading branch information
o3bvv committed Mar 8, 2014
1 parent 207c019 commit 49e67a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion il2ds_difficulty/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def validate_difficulty(value):
if not isinstance(value, int):
if not isinstance(value, (int, long)):
raise TypeError(_("Difficulty is not an integer"))
if value < 0:
raise ValueError(_("Difficulty must be a positive number"))
Expand Down

0 comments on commit 49e67a4

Please sign in to comment.