Silence pep8 warnings
authorMagnus Hagander <[email protected]>
Thu, 25 Nov 2021 12:31:39 +0000 (13:31 +0100)
committerMagnus Hagander <[email protected]>
Thu, 25 Nov 2021 12:31:39 +0000 (13:31 +0100)
pgcommitfest/commitfest/forms.py

index 1c812f4c2c88dbc63f388229d8e910c4cc896fde..61d90463ff3571f8358401ce4d0d21868b3cf689 100644 (file)
@@ -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']