Skip to content

Commit

Permalink
Change validator requirement for owner ID
Browse files Browse the repository at this point in the history
This fixes bug related to sqlalch 1.0
  • Loading branch information
DarkFenX committed May 1, 2015
1 parent dbb98e9 commit 9cf2094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eos/saveddata/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def validator(self, key, val):
map = {"ID": lambda val: isinstance(val, int),
"name" : lambda val: True,
"apiKey" : lambda val: val is None or (isinstance(val, basestring) and len(val) > 0),
"ownerID" : lambda val: isinstance(val, int)}
"ownerID" : lambda val: isinstance(val, int) or val is None}

if map[key](val) == False: raise ValueError(str(val) + " is not a valid value for " + key)
else: return val
Expand Down

0 comments on commit 9cf2094

Please sign in to comment.