2d4f3da090
All built-in inheritors of osc_lib.exceptions.ClientException expects 3 positional arguments: first argument is code, the second one is message. osc_lib.api.api.BaseAPI raises NotFound exception with transmitting only message arguments which goes to position of 'code' argument. This patch adds `code=404` argument and passes actual message as 'message'. Also, this patch adds a hack that processes code as message n case when code is not an integer and None was found at 'message' argument. Funny fact: More than 4 years ago, I proposed a similar fix to oslo-incubator... it was so long ago... https://review.opendev.org/#/c/94884 :) Change-Id: I022bbf3ce4bdd48b3bdcb008ee872c4f62a7b12b |
||
---|---|---|
.. | ||
__init__.py | ||
api.py | ||
auth.py | ||
utils.py |