diff options
Diffstat (limited to 'opnfv_testapi/tornado_swagger')
-rw-r--r-- | opnfv_testapi/tornado_swagger/swagger.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opnfv_testapi/tornado_swagger/swagger.py b/opnfv_testapi/tornado_swagger/swagger.py index 83f389a..9afdb17 100644 --- a/opnfv_testapi/tornado_swagger/swagger.py +++ b/opnfv_testapi/tornado_swagger/swagger.py @@ -255,7 +255,8 @@ class operation(DocParser): def _parse_args(self, func): argspec = inspect.getargspec(func) - argspec.args.remove("self") + if 'self' in argspec.args: + argspec.args.remove('self') defaults = [] if argspec.defaults: |