Permalink
Browse files

error handling

  • Loading branch information...
1 parent 56018c7 commit ee0e3fd43716f437f8edbe100d72074b0f632b31 @deafgoat deafgoat committed Mar 11, 2013
Showing with 12 additions and 9 deletions.
  1. +12 −9 server.py
View
@@ -116,15 +116,18 @@ def results_page():
end = request.GET.get('end')
if multi:
results = []
- from ast import literal_eval
- for platform in literal_eval(multi):
- result = literal_eval(json.dumps(platform))
- result = { attrib : '/' + result[attrib] + '/' for attrib in result }
- tmp = raw_data(result['version'], result['label'],
- result['run_date'], result['platform'], None, None)
- for result in tmp:
- results.append(result)
- results = merge(results)
+ try:
+ from ast import literal_eval
+ for platform in literal_eval(multi):
+ result = literal_eval(json.dumps(platform))
+ result = { attrib : '/' + result[attrib] + '/' for attrib in result }
+ tmp = raw_data(result['version'], result['label'],
+ result['run_date'], result['platform'], None, None)
+ for result in tmp:
+ results.append(result)
+ results = merge(results)
+ except:
+ pass
else:
results = raw_data(versions, labels, dates, platforms, start, end)

0 comments on commit ee0e3fd

Please sign in to comment.