Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. [2019-12-11 18:41:14,826] ERROR in app: Exception on /api/geo/city/1 [PUT]
  2. Traceback (most recent call last):
  3. File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 2446, in wsgi_app
  4. response = self.full_dispatch_request()
  5. File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
  6. rv = self.handle_user_exception(e)
  7. File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask_cors\extension.py", line 161, in wrapped_function
  8. return cors_after_request(app.make_response(f(*args, **kwargs)))
  9. File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1820, in handle_user_exception
  10. reraise(exc_type, exc_value, tb)
  11. File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\_compat.py", line 39, in reraise
  12. raise value
  13. File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
  14. rv = self.dispatch_request()
  15. File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1935, in dispatch_request
  16. return self.view_functions[rule.endpoint](**req.view_args)
  17. File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\views.py", line 89, in view
  18. return self.dispatch_request(*args, **kwargs)
  19. File "C:\Users\devec\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\views.py", line 163, in dispatch_request
  20. return meth(*args, **kwargs)
  21. File "C:\Users\devec\projects\pdb\proj\fit-pdb19-railways\server\blueprints\__init__.py", line 58, in put
  22. return jsonify(self.model.update(object_id, request.json))
  23. File "C:\Users\devec\projects\pdb\proj\fit-pdb19-railways\server\models\__init__.py", line 134, in update
  24. if not values.keys() <= cls.Meta.all_keys:
  25. AttributeError: 'NoneType' object has no attribute 'keys'
  26. 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