Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Feb 16, 2016
1 parent e75c923 commit 51214f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sentry_jira/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(self, data=None, *args, **kwargs):
if default_project:
try:
meta = jira.get_create_meta_for_project(default_project)
except JIRAError as e:
except JIRAError:
can_auto_create = False
else:
self.fields["default_issue_type"].choices = JIRAFormUtils.make_choices(meta["issuetypes"])
Expand Down
3 changes: 1 addition & 2 deletions sentry_jira/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def create_issue(self, request, group, form_data, **kwargs):
try:
issue_response = jira_client.create_issue(form_data)
except JIRAError as e:
issue_response = e.response
# return some sort of error.
errdict = {"__all__": None}
if issue_response.status_code == 500:
Expand Down Expand Up @@ -325,8 +326,6 @@ def post_process(self, group, event, is_new, is_sample, **kwargs):
if not (default_priority and default_issue_type and default_project):
return

jira_client = self.get_jira_client(group.project)

post_data = {
'project': {'id': default_project},
'summary': initial['summary'],
Expand Down

0 comments on commit 51214f0

Please sign in to comment.