Commit 8ba67db8 authored by Nicolas Wavrant's avatar Nicolas Wavrant

notifier.py: fixes some syntax errors

parent e8620f3c
...@@ -170,16 +170,16 @@ def main(): ...@@ -170,16 +170,16 @@ def main():
response = notification.getresponse() response = notification.getresponse()
if not (200 <= response.status < 300): if not (200 <= response.status < 300):
error_message = ("The remote server at %s didn't send a successful reponse.\n" error_message = ("The remote server at %s didn't send a successful reponse.\n"
"Its response was %r\n") % (notif_url, response.reason) "Its response was %r\n" % (notif_url, response.reason))
some_notification_failed = True some_notification_failed = True
except socket.error as exc: except socket.error as exc:
error_message = "Connection with remote server at %s failed:\n" % notif_url error_message = "Connection with remote server at %s failed:\n" % notif_url
error_message.append(traceback.format_exc(exc)) error_message += traceback.format_exc(exc)
some_notification_failed = True some_notification_failed = True
finally: finally:
if error_message: if error_message:
sys.stderr.write(error_message) sys.stderr.write(error_message)
saveStatus('ERROR ON NOTIFYING : %s') % error_message saveStatus('ERROR ON NOTIFYING : %s' % error_message)
if some_notification_failed: if some_notification_failed:
sys.exit(1) sys.exit(1)
......
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