Commit 0de571b0 authored by Philipp Töws's avatar Philipp Töws

Remove unnecessary else

parent b64f9c62
......@@ -18,6 +18,7 @@ class NotificationHandler:
for n in self._notificators:
try:
n.send(msg)
success = True
except (lea_exceptions.NotifyingFailedException,
requests.exceptions.ConnectionError,
Exception):
......@@ -25,8 +26,6 @@ class NotificationHandler:
# Don't recursively call notify() here: Might cause recursion loop
self._message_queue.append("Beim Senden via " + type(n).__name__ + " ist ein Fehler"
" aufgetreten: " + traceback.format_exc())
else:
success = True
if not success:
self._message_queue.append(msg)
return success
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment