БГ
Size: a a a
БГ
🚲U
БГ
А
except GoggleLiba:
...
БГ
БГ
py3
print(issubclass(BrokenPipeError, OSError))
True
🚲U
py3
print(issubclass(BrokenPipeError, OSError))
True
БГ
py3
print(issubclass(BrokenPipeError, OSError))
True
🚲U
БГ
py3
from socket import timeout
print(issubclass(timeout, OSError))
True
БГ
py3
from socket import timeout
print(issubclass(timeout, OSError))
True
🚲U
python3
import time
try:
for x in range(10):
print(x)
if x == 6:
raise BrokenPipeError
time.sleep(0.1)
except OSError:
print("The may have been BrokenPipeError")
0
1
2
3
4
5
6
The may have been BrokenPipeError
🚲U
python3
import time
try:
for x in range(10):
print(x)
if x == 6:
raise BrokenPipeError
time.sleep(0.1)
except OSError:
print("The may have been BrokenPipeError")
0
1
2
3
4
5
6
The may have been BrokenPipeError
python3
import socket
import time
try:
for x in range(10):
print(x)
if x == 6:
raise socket.timeout
time.sleep(0.1)
except OSError:
print("The may have been socket.timeout")
0
1
2
3
4
5
6
The may have been socket.timeout
🚲U
БГ
БГ
А
🚲U