Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • \$\begingroup\$ You could shorten this by using a different protocol (ftp, perhaps), and doing except:0/0. \$\endgroup\$ Commented Jan 25, 2017 at 21:30
  • \$\begingroup\$ @Mego I think requests only does http(s). I've added the 0/0. \$\endgroup\$ Commented Jan 25, 2017 at 21:56
  • \$\begingroup\$ Why is the try-except statement necessary? \$\endgroup\$ Commented Apr 9, 2020 at 2:06
  • \$\begingroup\$ @pppery Umm, yes. Thanks for pointing it out. I have no idea. Must have been a relic of the original solution. \$\endgroup\$ Commented Apr 9, 2020 at 10:07