Handle JSON parsing errors
This commit is contained in:
parent
38ba8a50df
commit
a2353add61
@ -398,6 +398,9 @@ class User:
|
|||||||
except IndexError as e:
|
except IndexError as e:
|
||||||
# Failed to get the description script, don't do anything about it and leave the dict as-is
|
# Failed to get the description script, don't do anything about it and leave the dict as-is
|
||||||
pass
|
pass
|
||||||
|
except AttributeError as e:
|
||||||
|
# The description script isn't what we expected
|
||||||
|
pass
|
||||||
|
|
||||||
# Get all the submissions on this page
|
# Get all the submissions on this page
|
||||||
for item in soup.select('.gallery figure'):
|
for item in soup.select('.gallery figure'):
|
||||||
|
|||||||
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='FAAPI',
|
name='FAAPI',
|
||||||
version='0.6.5',
|
version='0.6.6',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
url='https://tem.party/gitea/tom/FAAPI',
|
url='https://tem.party/gitea/tom/FAAPI',
|
||||||
license='WTFPL',
|
license='WTFPL',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user