summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/forms.py
diff options
context:
space:
mode:
authorMagnus Hagander2021-11-25 12:31:39 +0000
committerMagnus Hagander2021-11-25 12:31:39 +0000
commit5cfc7d20e0e38174a04e345600efcb377f9239cc (patch)
tree3f13652def54c949c3b6e00841cc49e22e0e50c5 /pgcommitfest/commitfest/forms.py
parent74ff5309290edaaa80dd222a412dfaa7b8947271 (diff)
Silence pep8 warnings
Diffstat (limited to 'pgcommitfest/commitfest/forms.py')
-rw-r--r--pgcommitfest/commitfest/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pgcommitfest/commitfest/forms.py b/pgcommitfest/commitfest/forms.py
index 1c812f4..61d9046 100644
--- a/pgcommitfest/commitfest/forms.py
+++ b/pgcommitfest/commitfest/forms.py
@@ -84,7 +84,7 @@ class NewPatchForm(forms.ModelForm):
_archivesAPI('/message-id.json/%s' % self.cleaned_data['threadmsgid'])
except Http404:
raise ValidationError("Message not found in archives")
- except:
+ except Exception:
raise ValidationError("Error in API call to validate thread")
return self.cleaned_data['threadmsgid']
@@ -137,7 +137,7 @@ class CommentForm(forms.Form):
self.respid = respid
except MailThread.DoesNotExist:
raise ValidationError('Selected thread appears to no longer exist')
- except:
+ except Exception:
raise ValidationError('Invalid message selected')
return self.cleaned_data['responseto']