Commits

Donald Stufft committed 94ca6d2

Handle errors

  • Participants
  • Parent commits b9e568b

Comments (0)

Files changed (1)

File tools/hosting_mode_migration.py

 import sys
 import os
 import json
+import traceback
 
 from email.mime.text import MIMEText
 
 
     print "Sending for", package, "[%s/%s]" % (i, len(package_users))
 
-    server.sendmail("donald@python.org", emails, msg.as_string())
-    sent.append(("donald@python.org", emails, msg.as_string()))
+    try:
+        server.sendmail("donald@python.org", emails, msg.as_string())
+        sent.append(("donald@python.org", emails, msg.as_string()))
+    except:
+        traceback.print_exc()
+
 server.quit()