Handle JSON parsing errors
This commit is contained in:
parent
38ba8a50df
commit
a2353add61
@ -398,6 +398,9 @@ class User:
|
||||
except IndexError as e:
|
||||
# Failed to get the description script, don't do anything about it and leave the dict as-is
|
||||
pass
|
||||
except AttributeError as e:
|
||||
# The description script isn't what we expected
|
||||
pass
|
||||
|
||||
# Get all the submissions on this page
|
||||
for item in soup.select('.gallery figure'):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user