Message401491
Expression `A or B` gets you A if A is true.
If you want to catch several types of exception by one "except", use except with a tuple:
except (ConnectionResetError, ConnectionAbortedError): |
|
Date |
User |
Action |
Args |
2021-09-09 16:10:33 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ShlomiRex |
2021-09-09 16:10:33 | serhiy.storchaka | set | messageid: <1631203833.17.0.903177332234.issue45153@roundup.psfhosted.org> |
2021-09-09 16:10:33 | serhiy.storchaka | link | issue45153 messages |
2021-09-09 16:10:33 | serhiy.storchaka | create | |
|