79725522

Date: 2025-08-05 01:33:52
Score: 0.5
Natty:
Report link

I use python 3.10. HTTPError is no good. Use from urllib.error import URLError

from urllib.error import URLError
try:
    urlopen('http://url404.com')
except URLError as e:
    print(e.code)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex Fang