Private
Public Access
1
0

some bug fixes

Email processing now correctly processes message body on AttributeError
Workflow page now loads correctly - threw Error 500 when user deleted
all his FavoriteCharts
This commit is contained in:
Sander Roosendaal
2017-11-13 14:51:28 +01:00
parent f1bed2ec4f
commit 14a10becf1
2 changed files with 6 additions and 2 deletions

View File

@@ -209,7 +209,8 @@ def upload_options(body):
if 'priva' in lowkey:
uploadoptions = getboolean(uploadoptions,value,'makeprivate')
except AttributeError:
pass
#pass
raise yaml.YAMLError
except yaml.YAMLError as exc:
try:
uploadoptions = getplotoptions_body2(uploadoptions,body)

View File

@@ -513,7 +513,10 @@ def get_thumbnails(request,id):
charts = []
charts = thumbnails_set(r,id,favorites)
if charts[0]['script'] == '':
try:
if charts[0]['script'] == '':
charts = []
except IndexError:
charts = []