except Exception as e:
will catch every exception apart from ConnectionError
and TimeoutError
from the previous except
block thus lines 14-17 ate redundant. bare except
is same as except BaseException
. Strictly speaking, if it wasn't like this, on line 15 e
would be undefined and raise NameError
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs