Closed lonetwin closed 7 years ago
@lonetwin How correcting variables in print
fixing the TimeoutError? Can you explain the main fix, where do you handling the TimeoutError exception?
@kenorb TimeoutError
is a subclass of IOError
:
>>> try:
... raise TimeoutError(42, "Don't Panic")
... except IOError as e:
... print ("Error: %s: %s" % (e.errno, e.strerror))
...
Error: 42: Don't Panic
so the code actually goes into the IOError
handling block where it then fails to find the .code
and .reason
attributes. The fix changes this by using the correct attributes of IOError
exceptions.
codemill-id-57fd18d2750d29000300cd08 fixes #79