Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [2019-12-11 18:41:14,826] ERROR in app: Exception on /api/geo/city/1 [PUT]
- Traceback (most recent call last):
- File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 2446, in wsgi_app
- response = self.full_dispatch_request()
- File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
- rv = self.handle_user_exception(e)
- File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask_cors\extension.py", line 161, in wrapped_function
- return cors_after_request(app.make_response(f(*args, **kwargs)))
- File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1820, in handle_user_exception
- reraise(exc_type, exc_value, tb)
- File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\_compat.py", line 39, in reraise
- raise value
- File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
- rv = self.dispatch_request()
- File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1935, in dispatch_request
- return self.view_functions[rule.endpoint](**req.view_args)
- File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\views.py", line 89, in view
- return self.dispatch_request(*args, **kwargs)
- File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\views.py", line 163, in dispatch_request
- return meth(*args, **kwargs)
- File "C:\Users\devec\projects\pdb\proj\fit-pdb19-railways\server\blueprints\__init__.py", line 58, in put
- return jsonify(self.model.update(object_id, request.json))
- File "C:\Users\devec\projects\pdb\proj\fit-pdb19-railways\server\models\__init__.py", line 134, in update
- if not values.keys() <= cls.Meta.all_keys:
- AttributeError: 'NoneType' object has no attribute 'keys'
- 127.0.0.1 - - [11/Dec/2019 18:41:14] "PUT /api/geo/city/1 HTTP/1.1" 500 -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement