Merge "Fix None being passed into as_int()."
This commit is contained in:
@@ -103,7 +103,7 @@ class API(base.Base):
|
||||
def as_int(s):
|
||||
try:
|
||||
return int(s)
|
||||
except ValueError:
|
||||
except ValueError, TypeError:
|
||||
return s
|
||||
|
||||
# tolerate size as stringified int
|
||||
|
||||
Reference in New Issue
Block a user