summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-02-04 01:52:32 +0200
committerLV-426 <lv-426@taproot.org.il>2015-02-04 01:52:32 +0200
commit2a4593497db108831a6bc2c364277d252585412a (patch)
tree08395edb66503a297ab0a32b8e9b00f9b6eb981b /src
parentace2066cc3572acdafdeddae10a427d71fcd017e (diff)
send_user_activation_link__email(): avoid duplicate exception handling
Diffstat (limited to 'src')
-rw-r--r--src/server/rz_user.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/server/rz_user.py b/src/server/rz_user.py
index 633e9495..06951694 100644
--- a/src/server/rz_user.py
+++ b/src/server/rz_user.py
@@ -256,6 +256,7 @@ def send_user_activation_link__email(us_req):
Send user feedback by email along with screen capture attachments
@return: activation_link
+ @raise exception: on send error
"""
# FIXME: use HTTPS
@@ -276,11 +277,7 @@ def send_user_activation_link__email(us_req):
]
msg_body = '\n'.join(msg_body)
- try:
- send_email_message(recipients=[us_req['email_address']],
- subject="Rhizi sign up request",
- body=msg_body)
- return activation_link
-
- except Exception:
- log.exception('send_user_feedback__email: exception while sending email')
+ send_email_message(recipients=[us_req['email_address']],
+ subject="Rhizi sign up request",
+ body=msg_body)
+ return activation_link