Error rendering TemplateHook 'NoneType' object has no attribute 'id'

NEW
Unassigned

Status

MozReview
General
2 years ago
2 years ago

People

(Reporter: gps, Unassigned)

Tracking

Details

(Reporter)

Description

2 years ago
Found this stack occur a few times in the server logs:

2016-02-11 17:13:21,151 - ERROR -  - Error rendering TemplateHook <djblets.extensions.hooks.TemplateHook object at 0x7fd4ddfa69d0>: 'NoneType' object has no attribute 'id'
Traceback (most recent call last):
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/djblets/extensions/templatetags/djblets_extensions.py", line 32, in _render_hooks
    yield hook.render_to_string(request, context)
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/djblets/extensions/hooks.py", line 246, in render_to_string
    RequestContext(request, context))
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/django/template/loader.py", line 164, in render_to_string
    return t.render(Context(dictionary))
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/django/template/base.py", line 140, in render
    return self._render(context)
  File "/usr/lib64/python2.6/site-packages/newrelic-2.44.0.36/newrelic/api/function_trace.py", line 98, in dynamic_wrapper
    return wrapped(*args, **kwargs)
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
    return self.nodelist.render(context)
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/django/template/base.py", line 840, in render
    bit = self.render_node(node, context)
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/django/template/base.py", line 854, in render_node
    return node.render(context)
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/django/template/defaulttags.py", line 298, in render
    match = condition.eval(context)
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/django/template/defaulttags.py", line 867, in eval
    return self.value.resolve(context, ignore_failures=True)
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/django/template/base.py", line 613, in resolve
    new_obj = func(obj, *arg_vals)
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/mozreview-0.1.2a0-py2.6.egg/mozreview/templatetags/mozreview.py", line 24, in isPush
    return is_pushed(review_request)
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/mozreview-0.1.2a0-py2.6.egg/mozreview/extra_data.py", line 72, in is_pushed
    commit_data = fetch_commit_data(review_request, commit_data=commit_data)
  File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/mozreview-0.1.2a0-py2.6.egg/mozreview/extra_data.py", line 60, in fetch_commit_data
    review_request_id=review_request_details.id)[0]
AttributeError: 'NoneType' object has no attribute 'id'
(Assignee)

Updated

2 years ago
Product: Developer Services → MozReview
You need to log in before you can comment on or make changes to this bug.