fork download
  1. import socket
  2.  
  3. try:
  4. raise socket.gaierror("Error!")
  5. except socket.gaierror as e:
  6. print("Oh, my! An error! %s" % e)
Success #stdin #stdout 0.03s 10392KB
stdin
Standard input is empty
stdout
Oh, my! An error! Error!