Skip to content

Commit

Permalink
Merge branch 'dev' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Dec 16, 2021
2 parents 3b59e9a + f2b9961 commit 0442fe7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion biosimulators_test_suite/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.80'
__version__ = '0.1.81'
15 changes: 10 additions & 5 deletions biosimulators_test_suite/test_case/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import os
import requests
import requests.exceptions
import simplejson.errors
import yaml

__all__ = [
Expand Down Expand Up @@ -87,13 +88,17 @@ def eval_outputs(self, specifications, synthetic_archive, synthetic_sed_docs, ou
'The simulation log is invalid. Documentation about the log format is available at '
'https://docs.biosimulations.org/concepts/conventions/simulation-run-logs/ and https://api.biosimulations.org.'
)
error = response.json()['error'][0]

pointer = error.get('source', {}).get('pointer', None)
if pointer:
msg += '\n\nSource: ' + pointer
try:
error = response.json()['error'][0]

msg += '\n\n' + error['detail']
pointer = error.get('source', {}).get('pointer', None)
if pointer:
msg += '\n\nSource: ' + pointer

msg += '\n\n' + error['detail']
except simplejson.errors.JSONDecodeError:
msg += '\n\n{}: {}'.format(response.status_code, response.text)

raise InvalidOutputsException(msg)

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ natsort
PyPDF2
python_dateutil
pyyaml
simplejson
termcolor

0 comments on commit 0442fe7

Please sign in to comment.