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

[tor-commits] [gettor/master] Fix assignment error for link message



commit e83ddb5ad07e02bc7c07e9c738ec80680bad7520
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Tue Oct 15 21:48:33 2019 +0200

    Fix assignment error for link message
---
 gettor/services/email/sendmail.py    | 2 ++
 gettor/services/twitter/twitterdm.py | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/gettor/services/email/sendmail.py b/gettor/services/email/sendmail.py
index bba350d..9976474 100644
--- a/gettor/services/email/sendmail.py
+++ b/gettor/services/email/sendmail.py
@@ -177,6 +177,8 @@ class Sendmail(object):
 
                     # build message
                     link_msg = None
+                    file = ""
+                    
                     for link in links:
                         provider = link[5]
                         version = link[4]
diff --git a/gettor/services/twitter/twitterdm.py b/gettor/services/twitter/twitterdm.py
index abc7c78..04bc9d8 100644
--- a/gettor/services/twitter/twitterdm.py
+++ b/gettor/services/twitter/twitterdm.py
@@ -185,6 +185,8 @@ class Twitterdm(object):
 
                     # build message
                     link_msg = None
+                    file = ""
+
                     for link in links:
                         provider = link[5]
                         version = link[4]

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