[tor-commits] [gettor/master] Fix error and call backs in email message responder

hiro at torproject.org hiro at torproject.org
Wed Oct 16 11:10:47 UTC 2019


commit 3a4cfabba53967b6047518ae759123168673d6d4
Author: hiro <hiro at torproject.org>
Date:   Wed Oct 16 13:10:44 2019 +0200

    Fix error and call backs in email message responder
---
 gettor/services/twitter/twitterdm.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gettor/services/twitter/twitterdm.py b/gettor/services/twitter/twitterdm.py
index e67610b..33dd495 100644
--- a/gettor/services/twitter/twitterdm.py
+++ b/gettor/services/twitter/twitterdm.py
@@ -93,8 +93,7 @@ class Twitterdm(object):
             time.sleeps(30)
 
         else:
-            raise RuntimeError as e:
-                log.info("Error sending message: {}.".format(e))
+            raise RuntimeError("Error sending message: (%s)" % str(e))
 
         return post_data
 



More information about the tor-commits mailing list