]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/views/user.py
Remove a bunch of unused variables
[patchwork] / apps / patchwork / views / user.py
index c83f0b1ec7e684c48561baa213797e8670fdefae..1ae3c2dd3843cc37c33f32dc31e9b9262dc4b3df 100644 (file)
@@ -72,7 +72,7 @@ def link(request):
                                 context),
                             settings.DEFAULT_FROM_EMAIL,
                             [form.cleaned_data['email']])
-            except Exception, ex:
+            except Exception:
                 context['confirmation'] = None
                 context['error'] = 'An error occurred during confirmation. ' + \
                                    'Please try again later'
@@ -97,7 +97,6 @@ def link_confirm(request, key):
 
 @login_required
 def unlink(request, person_id):
-    context = PatchworkRequestContext(request)
     person = get_object_or_404(Person, id = person_id)
 
     if request.method == 'POST':