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

NameError: name 'project_stats' is not defined #66

Open
chfoo opened this issue Apr 16, 2019 · 0 comments
Open

NameError: name 'project_stats' is not defined #66

chfoo opened this issue Apr 16, 2019 · 0 comments
Labels

Comments

@chfoo
Copy link
Member

chfoo commented Apr 16, 2019

As reported on IRC, adding a IDN as a new project in the tracker causes an exception.

Tracker running on 1f5e121

2019-04-16 01:23:05,984 - tornado.application - ERROR - Uncaught exception POST /projects/overview?action=add_project ([snipped])
HTTPServerRequest(protocol='https', host='tracker.archiveteam.org:1338', method='POST', uri='/projects/overview?action=add_project', version='HTTP/1.1', remote_ip='[snipped]', headers=[snipped])
Traceback (most recent call last):
  File "/home/tinytown/.local/lib/python3.4/site-packages/tornado/web.py", line 1443, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/home/tinytown/.local/lib/python3.4/site-packages/tornado/web.py", line 2800, in wrapper
    return method(self, *args, **kwargs)
  File "/home/tinytown/terroroftinytown/terroroftinytown/tracker/project.py", line 63, in post
    project_budgets=Budget.projects,
  File "/home/tinytown/.local/lib/python3.4/site-packages/tornado/web.py", line 699, in render
    html = self.render_string(template_name, **kwargs)
  File "/home/tinytown/.local/lib/python3.4/site-packages/tornado/web.py", line 806, in render_string
    return t.generate(**namespace)
  File "/home/tinytown/.local/lib/python3.4/site-packages/tornado/template.py", line 345, in generate
    return execute()
  File "admin/project/all_html.generated.py", line 180, in _tt_execute
    _tt_tmp = project_stats.get(project['name'], 'xy')[0]  # admin/project/all.html:55 (via admin/base.html:28, base.html:13)
NameError: name 'project_stats' is not defined
@chfoo chfoo added the bug label Aug 13, 2024
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

1 participant