Add exception to catch

This commit is contained in:
Eugenio Lacuesta 2020-11-11 11:18:03 -03:00
parent 5e9a99e6a1
commit b0368228d7
No known key found for this signature in database
GPG Key ID: DA3EF2D0913E9810
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ class ScrapyAgent:
try:
version = result["txresponse"].version
protocol = f"{to_unicode(version[0])}/{version[1]}.{version[2]}"
except (AttributeError, TypeError):
except (AttributeError, TypeError, IndexError):
protocol = None
response = respcls(
url=url,