getsentry / sentry-jira

A Plugin for sentry that lets you create JIRA issues
Other
95 stars 32 forks source link

Empty project list causes 500 #31

Closed dcramer closed 11 years ago

dcramer commented 11 years ago
IndexError: list index out of range

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "sentry/web/decorators.py", line 154, in wrapped
    return func(request, *args, **kwargs)
  File "sentry/web/decorators.py", line 77, in _wrapped
    return func(request, project, *args, **kwargs)
  File "sentry/web/frontend/groups.py", line 363, in group_plugin_action
    response = plugin.get_view_response(request, group)
  File "sentry/plugins/base.py", line 313, in get_view_response
    response = self.view(request, group)
  File "sentry_jira/plugin.py", line 131, in view
    ignored_fields=self.get_option("ignored_fields", group.project))
  File "sentry_jira/forms.py", line 138, in __init__
    project = meta["projects"][0]
thurloat commented 11 years ago

booya! thx for the report bro

thurloat commented 11 years ago

after some more testing, will release this with other fixes.