diff options
Diffstat (limited to 'pgcommitfest/commitfest')
-rw-r--r-- | pgcommitfest/commitfest/forms.py | 4 |
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'] |