global name 'settings' is not defined
s-ol opened this issue · comments
Here: https://github.com/toxinu/leselys/blob/master/leselys/backends/storage/_mongodb.py#L31
leselys_1 | [2017-11-24 16:43:48,279] ERROR in app: Exception on /api/feed settings [POST]
leselys_1 | Traceback (most recent call last):
leselys_1 | File "/usr/lib/python2.7/site-packages/flask/app.py", line 1 982, in wsgi_app
leselys_1 | response = self.full_dispatch_request()
leselys_1 | File "/usr/lib/python2.7/site-packages/flask/app.py", line 1 614, in full_dispatch_request
leselys_1 | rv = self.handle_user_exception(e)
leselys_1 | File "/usr/lib/python2.7/site-packages/flask/app.py", line 1 517, in handle_user_exception
leselys_1 | reraise(exc_type, exc_value, tb)
leselys_1 | File "/usr/lib/python2.7/site-packages/flask/app.py", line 1 612, in full_dispatch_request
leselys_1 | rv = self.dispatch_request()
leselys_1 | File "/usr/lib/python2.7/site-packages/flask/app.py", line 1 598, in dispatch_request
leselys_1 | return self.view_functions[rule.endpoint](**req.view_args)
leselys_1 | File "/usr/lib/python2.7/site-packages/leselys/helpers.py", line 96, in decorated_function
leselys_1 | return f(*args, **kwargs)
leselys_1 | File "/usr/lib/python2.7/site-packages/leselys/api.py", line 249, in change__feed_setting
leselys_1 | storage.set_feed_setting(feed_id, key, value)
leselys_1 | File "/usr/lib/python2.7/site-packages/leselys/backends/stor age/_mongodb.py", line 31, in set_feed_setting
leselys_1 | '_id': settings['_id'],
leselys_1 | NameError: global name 'settings' is not defined