Trivial update

This commit is contained in:
Miroslav Stampar
2020-09-09 14:07:13 +02:00
parent bfe93e20c5
commit 1658331810
3 changed files with 3 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ class SmartRedirectHandler(_urllib.request.HTTPRedirectHandler):
if not hasattr(result, "read"):
def _(self, length=None):
try:
retVal = getSafeExString(ex)
retVal = getSafeExString(ex) # Note: pyflakes mistakenly marks 'ex' as undefined (NOTE: tested in both Python2 and Python3)
except:
retVal = ""
return retVal