toconnell / kdm-manager

An interactive campaign manager for the game "Monster", by Kingdom Death. Development blog and release notes at https://blog.kdm-manager.com This project has no affiliation with Kingdom Death and is a totally independent, fan-maintained project.
http://kdm-manager.com
Other
26 stars 11 forks source link

survivor/set_color_scheme fails on None type/null input #525

Closed toconnell closed 5 years ago

toconnell commented 5 years ago

User OID: 5b6029718740d91270712b0e Method: POST URL: http://api.thewatcher.io/survivor/set_color_scheme/5bc2436f8740d9041fd9b858 JSON: {u'handle': None, u'serialize_on_response': True}

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1639, in full_dispatch_request
 rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1625, in dispatch_request
 return self.view_functions[rule.endpoint](**req.view_args)
File "/home/toconnell/kdm-manager/v2/api/utils.py", line 516, in wrapped_function
 resp = make_response(f(*args, **kwargs))
File "/home/toconnell/kdm-manager/v2/api/api.py", line 262, in collection_action
 return asset_object.request_response(action)
File "/home/toconnell/kdm-manager/v2/api/models/survivors.py", line 3363, in request_response
 self.set_color_scheme()
File "/home/toconnell/kdm-manager/v2/api/models/survivors.py", line 1108, in set_color_scheme
 scheme_dict = survivor_sheet_options.survivor_color_schemes[handle]
KeyError: None
toconnell commented 5 years ago

Haven't seen this in a long time, but am moving it to the API project (as a 'cannot replicate' issue): https://github.com/theLaborInVain/kdm-manager-api/issues/10