[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [doctor/master] Error when sending crash notifications



commit a6cc5314f24359ae0fc979d6457ad96a9e7bad8b
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sat Nov 22 12:58:49 2014 -0800

    Error when sending crash notifications
    
    When DocTor has an unexpected error it's supposed to email me, but that had an
    issue. Thankfully cron emailed me an error about the error. :P
    
      Traceback (most recent call last):
        File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 762, in <module>
          util.send("Script Error", body_text = msg, destination = util.ERROR_ADDRESS)
      TypeError: send() got an unexpected keyword argument 'body_text'
---
 consensus_health_checker.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consensus_health_checker.py b/consensus_health_checker.py
index 5890c95..794661f 100755
--- a/consensus_health_checker.py
+++ b/consensus_health_checker.py
@@ -759,4 +759,4 @@ if __name__ == '__main__':
     if TEST_RUN:
       print "Error: %s" % msg
     else:
-      util.send("Script Error", body_text = msg, destination = util.ERROR_ADDRESS)
+      util.send("Script Error", body = msg, to = [util.ERROR_ADDRESS])



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits