Commit f4cba154 by e0d

Exception handling refactor.

parent 57d360a6
......@@ -588,10 +588,8 @@ def send_hipchat_message(message):
hipchat = hipchat.HipChat(token=args.hipchat_api_token)
hipchat.message_room(args.hipchat_room_id,'AbbeyNormal',
message)
except:
e = sys.exc_info()[0]
print("Hipchat messaging resulted in an error.")
print("Error: %s" % e)
except Exception as e:
print("Hipchat messaging resulted in an error: %s." % e)
if __name__ == '__main__':
......
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