Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Convert to C++, and call get_pid() directly.
[simgrid.git] / tools / appveyor-irc-notify.py
index e4795f0..463104f 100644 (file)
@@ -33,7 +33,7 @@ expanded automatically, replaced with a corresponding Appveyor environment varia
 value. se commas to delineate multiple messages.
 
 Modified by Martin Quinson on June 2018:
-  
+
  - Use OFTC instead of Freenode
 
 Example:
@@ -62,7 +62,11 @@ in Appveyor's YAML:
 
 """
 
-import random, socket, ssl, sys, time
+import random
+import socket
+import ssl
+import sys
+import time
 
 
 def appveyor_vars():
@@ -170,7 +174,7 @@ if __name__ == '__main__':
                 # leave the channel
                 irc_sock.send('PART #{}\r\n'.format(channel).encode('utf_8'))
                 sys.exit()
-    except:
+    except BaseException:
         e = sys.exc_info()[0]
         print(e)
         sys.exit()