fork download
  1. try:
  2. inputFile = open('nosuchfile', 'r')
  3. except IOError as exception:
  4. print ('error: %s: %r' % (exception.strerror, exception.filename))
Success #stdin #stdout 0.01s 7852KB
stdin
Standard input is empty
stdout
error: No such file or directory: 'nosuchfile'