mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 08:17:13 +03:00
Replaced assert False with a clearer raise
previously this would assert False, which always raises an AssertionError, now we raise a saner ValueError
This commit is contained in:
parent
2890d33d03
commit
09f5dfff23
@ -129,8 +129,7 @@ def listify(thing):
|
||||
return retval
|
||||
|
||||
else:
|
||||
assert False, thing # we expect an array or a sparse array
|
||||
return list(thing) # hope for the best
|
||||
raise ValueError("expected an array or sparse array")
|
||||
|
||||
|
||||
class ServerError(Exception):
|
||||
|
Loading…
x
Reference in New Issue
Block a user