diff --git a/djstripe/contrib/rest_framework/views.py b/djstripe/contrib/rest_framework/views.py
index <HASH>..<HASH> 100644
--- a/djstripe/contrib/rest_framework/views.py
+++ b/djstripe/contrib/rest_framework/views.py
@@ -57,7 +57,7 @@ class SubscriptionRestView(APIView):
                     serializer.data.get("charge_immediately", True)
                 )
                 return Response(serializer.data, status=status.HTTP_201_CREATED)
-            except:
+            except Exception:
                 # TODO: Better error messages
                 return Response(
                     "Something went wrong processing the payment.",
@@ -77,5 +77,5 @@ class SubscriptionRestView(APIView):
             customer.subscription.cancel(at_period_end=CANCELLATION_AT_PERIOD_END)
 
             return Response(status=status.HTTP_204_NO_CONTENT)
-        except:
+        except Exception:
             return Response("Something went wrong cancelling the subscription.", status=status.HTTP_400_BAD_REQUEST)
diff --git a/tests/test_customer.py b/tests/test_customer.py
index <HASH>..<HASH> 100644
--- a/tests/test_customer.py
+++ b/tests/test_customer.py
@@ -420,7 +420,7 @@ class TestCustomer(TestCase):
 
         try:
             self.customer.retry_unpaid_invoices()
-        except:
+        except Exception:
             self.fail("Exception was unexpectedly raised.")
 
     @patch("djstripe.models.Account.get_default_account")
Replace bare except clauses by except Exception