summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-05-23 13:34:27 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-05-23 13:34:27 (GMT)
commit31aa01e608954f4474a3ba8fa5a863f33a1dcfe8 (patch)
tree60eccd72eb645680a129bc476100123dca4fbad5
parent330b86983064ded9461bbd006b7fd62f8a660790 (diff)
downloadauthentic2-cut-31aa01e608954f4474a3ba8fa5a863f33a1dcfe8.zip
authentic2-cut-31aa01e608954f4474a3ba8fa5a863f33a1dcfe8.tar.gz
authentic2-cut-31aa01e608954f4474a3ba8fa5a863f33a1dcfe8.tar.bz2
remove unused variable
-rw-r--r--src/authentic2_cut/api_views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authentic2_cut/api_views.py b/src/authentic2_cut/api_views.py
index 523e066..e5b7146 100644
--- a/src/authentic2_cut/api_views.py
+++ b/src/authentic2_cut/api_views.py
@@ -150,7 +150,7 @@ def validate_cut(self, request, uuid):
try:
validation_request = models.ValidationRequest.objects.create(
user=user, external_id=external_id, origin=origin)
- except IntegrityError as e:
+ except IntegrityError:
response = {'result': 0, 'errors': [{'code': 'already-exists'}]}
return Response(response, status.HTTP_400_BAD_REQUEST)
for attachment in attachments: