Handle JSON parsing errors

This commit is contained in:
Thomas Wade 2020-12-03 23:39:18 +10:30
parent 38ba8a50df
commit a2353add61
2 changed files with 4 additions and 1 deletions

View File

@ -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'):

View File

@ -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',