mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
Remove unused exception variables
(imported from commit 74adf1cecbb2704cdfe8a6d8a73812d9997a8384)
This commit is contained in:
@@ -136,7 +136,7 @@ def get_updates_longpoll(request, handler):
|
|||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
handler.finish({'zephyrs': [zephyr.to_dict() for zephyr in zephyrs]})
|
handler.finish({'zephyrs': [zephyr.to_dict() for zephyr in zephyrs]})
|
||||||
except socket.error, e:
|
except socket.error:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# We need to replace this abstraction with the message list
|
# We need to replace this abstraction with the message list
|
||||||
@@ -207,7 +207,7 @@ def zephyr_backend(request, sender):
|
|||||||
try:
|
try:
|
||||||
recipient_ids.append(
|
recipient_ids.append(
|
||||||
UserProfile.objects.get(user=User.objects.get(username=recipient)).id)
|
UserProfile.objects.get(user=User.objects.get(username=recipient)).id)
|
||||||
except User.DoesNotExist, e:
|
except User.DoesNotExist:
|
||||||
return json_error("Invalid username '%s'" % (recipient))
|
return json_error("Invalid username '%s'" % (recipient))
|
||||||
# Make sure the sender is included in the huddle
|
# Make sure the sender is included in the huddle
|
||||||
recipient_ids.append(UserProfile.objects.get(user=request.user).id)
|
recipient_ids.append(UserProfile.objects.get(user=request.user).id)
|
||||||
|
|||||||
Reference in New Issue
Block a user