Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We don't handle non existent users for browse moves and other pages. #32

Open
colonelpanic8 opened this issue Jul 7, 2013 · 0 comments

Comments

@colonelpanic8
Copy link
Owner

[E 130707 02:30:59 web:1085] Uncaught exception GET /get_stats?color=white&moves=%5B%5D&username=AlexMalison (127.0.0.1)
HTTPRequest(protocol='http', host='127.0.0.1:3030', method='GET', uri='/get_stats?color=white&moves=%5B%5D&username=AlexMalison', version='HTTP/1.1', remote_ip='127.0.0.1', body='', headers={'Accept-Language': 'en-US,en;q=0.8', 'Accept-Encoding': 'gzip,deflate,sdch', 'Host': '127.0.0.1:3030', 'Accept': 'application/json, text/plain, /', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36', 'Connection': 'keep-alive', 'X-Requested-With': 'XMLHttpRequest', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache', 'Referer': 'http://127.0.0.1:3030/browse_moves/AlexMalison'})
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/tornado/web.py", line 1037, in _execute
self.prepare()
File "/Library/Python/2.7/site-packages/tornado/web.py", line 1696, in prepare
self.fallback(self.request)
File "/Library/Python/2.7/site-packages/tornado/wsgi.py", line 239, in call
WSGIContainer.environ(request), start_response)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1701, in call
return self.wsgi_app(environ, start_response)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1689, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Library/Python/2.7/site-packages/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Python/2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Python/2.7/site-packages/flask/app.py", line 1344, in dispatch_request
return self.view_functionsrule.endpoint
File "/Users/imalison/Dropbox/Projects/ChessStats/chess_stats/routes.py", line 34, in get_game_stats
white=white
File "/Users/imalison/Dropbox/Projects/ChessStats/chess_stats/logic.py", line 167, in build_sorted_game_stats_for_moves_by_username
user = models.ChessDotComUser.find_user_by_username(username)
File "/Users/imalison/Dropbox/Projects/ChessStats/chess_stats/models.py", line 82, in find_user_by_username
return cls.query.filter(cls.username == username).one()
File "/Library/Python/2.7/site-packages/sqlalchemy/orm/query.py", line 2215, in one
raise orm_exc.NoResultFound("No row was found for one()")
NoResultFound: No row was found for one()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant