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

Server error when trying to query maps from a user that does not exist #346

Open
pchote opened this issue Sep 23, 2018 · 0 comments
Open
Labels

Comments

@pchote
Copy link
Member

pchote commented Sep 23, 2018

e.g. https://resource.openra.net/maps/uploader/0/

ERROR:django.request:Internal Server Error: /maps/uploader/0/
Traceback (most recent call last):
  File "/home/resource/Envs/resource.openra.net/lib/python3.4/site-packages/django/core/handlers/base.py", line 149, in get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/resource/Envs/resource.openra.net/lib/python3.4/site-packages/django/core/handlers/base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/resource/sites/resource.openra.net/www/openra/views.py", line 299, in maps_uploader
    'title': ' - Maps uploaded by ' + mapObject[0].user.username,
IndexError: list index out of range
@Mailaender Mailaender added the api label Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants