You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/webapps/oohdir/code/venv/lib/python3.10/site-packages/favicon/favicon.py", line 66, in get
link_icons = tags(response.url, response.text)
File "/webapps/oohdir/code/venv/lib/python3.10/site-packages/favicon/favicon.py", line 142, in tags
width, height = dimensions(tag)
File "/webapps/oohdir/code/venv/lib/python3.10/site-packages/favicon/favicon.py", line 188, in dimensions
return int(width), int(height)
ValueError: invalid literal for int() with base 10: ''
But I've replicated the error for my tests with an HTML page that has an element like:
I don't know which site/favicon my code was trying to fetch when the final line in
favicon.py
generated:But I've replicated the error for my tests with an HTML page that has an element like:
That
sizes
attribute results in the code trying to make a width/height from "" and generating the ValueError.The text was updated successfully, but these errors were encountered: