Skip to content

Commit 5cfc7d2

Browse files
committed
Silence pep8 warnings
1 parent 74ff530 commit 5cfc7d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgcommitfest/commitfest/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def clean_threadmsgid(self):
8484
_archivesAPI('/message-id.json/%s' % self.cleaned_data['threadmsgid'])
8585
except Http404:
8686
raise ValidationError("Message not found in archives")
87-
except:
87+
except Exception:
8888
raise ValidationError("Error in API call to validate thread")
8989
return self.cleaned_data['threadmsgid']
9090

@@ -137,7 +137,7 @@ def clean_responseto(self):
137137
self.respid = respid
138138
except MailThread.DoesNotExist:
139139
raise ValidationError('Selected thread appears to no longer exist')
140-
except:
140+
except Exception:
141141
raise ValidationError('Invalid message selected')
142142
return self.cleaned_data['responseto']
143143

0 commit comments

Comments
 (0)