Replace hardcoded string with variable.
David Blume

David Blume commited on 2018-01-22 08:54:30
Showing 1 changed files, with 2 additions and 2 deletions.

... ...
@@ -639,9 +639,9 @@ if __name__=='__main__':
639 639
         print exceptional_text, ' '.join(progress_text)
640 640
         traceback.print_exc(file=sys.stdout)
641 641
         try:
642
-            send_email('Exception thrown in techcrunch.py',
642
+            send_email('Exception thrown in ' + os.path.basename(__file__),
643 643
                       exceptional_text + "\n" + traceback.format_exc(),
644
-                      ('david.blume@gmail.com',))
644
+                      (smtp_creds.default_recipient,))
645 645
         except Exception as e:
646 646
             print "Could not send email to notify you of the exception. :("
647 647
 
648 648