theLaborInVain / kdm-manager-api

The API used by https://kdm-manager.com and related Kingdom Death: Monster utilities.
Other
3 stars 0 forks source link

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

Closed toconnell closed 3 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 3 years ago

Haven't seen this one in almost a year. Closing it.