1
0
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:
A_D 2020-07-08 18:10:28 +02:00
parent 2890d33d03
commit 09f5dfff23
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -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):