summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-05-13 17:27:46 +0100
committerMark Haines <mjark@negativecurvature.net>2016-05-13 17:27:46 +0100
commit077468f6a965c3986bb5373d46d53bbaec7e078b (patch)
tree5f62c041b70409f3fe2b347d5d80debd64261396 /synapse/push
parentMerge pull request #783 from matrix-org/markjh/slave_account_data (diff)
parentManually expire broken caches like the who_forgot_in_room (diff)
downloadsynapse-077468f6a965c3986bb5373d46d53bbaec7e078b.tar.xz
Merge pull request #780 from matrix-org/dbkr/email_notifs_on_pusher
Make email notifs work on the pusher synapse
Diffstat (limited to 'synapse/push')
-rw-r--r--synapse/push/mailer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py
index 5d60c1efcf..2be294f52e 100644
--- a/synapse/push/mailer.py
+++ b/synapse/push/mailer.py
@@ -397,6 +397,7 @@ class Mailer(object):
             return ""
 
         serverAndMediaId = value[6:]
+        fragment = None
         if '#' in serverAndMediaId:
             (serverAndMediaId, fragment) = serverAndMediaId.split('#', 1)
             fragment = "#" + fragment