fix gettitle errors
This will cause errors in gettitle, such as an HTTP 405 Method Not Allowed response, to not send out an ugly exception. This was a bug that got introduced due to the switch to requests.
This commit is contained in:
@@ -152,7 +152,7 @@ def gettitle(phenny, uri):
|
||||
#bytes = u.read(262144)
|
||||
#u.close()
|
||||
|
||||
except web.ConnectionError:
|
||||
except:
|
||||
return
|
||||
|
||||
m = r_title.search(bytes)
|
||||
|
||||
Reference in New Issue
Block a user