Remove unused exception variables

(imported from commit 74adf1cecbb2704cdfe8a6d8a73812d9997a8384)
This commit is contained in:
Keegan McAllister 2012-09-07 13:46:50 -04:00
parent 5a38fd2c48
commit 0d857d6855
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ def get_updates_longpoll(request, handler):
return
try:
handler.finish({'zephyrs': [zephyr.to_dict() for zephyr in zephyrs]})
except socket.error, e:
except socket.error:
pass
# We need to replace this abstraction with the message list
@ -207,7 +207,7 @@ def zephyr_backend(request, sender):
try:
recipient_ids.append(
UserProfile.objects.get(user=User.objects.get(username=recipient)).id)
except User.DoesNotExist, e:
except User.DoesNotExist:
return json_error("Invalid username '%s'" % (recipient))
# Make sure the sender is included in the huddle
recipient_ids.append(UserProfile.objects.get(user=request.user).id)