From: Magnus Hagander Date: Thu, 25 Nov 2021 12:31:39 +0000 (+0100) Subject: Silence pep8 warnings X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=5cfc7d20e0e38174a04e345600efcb377f9239cc;p=pgcommitfest2.git Silence pep8 warnings --- 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']