Skip to content

Commit

Permalink
Fix save() to handle input values containing new line characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanez committed Jul 10, 2015
1 parent 8f031e4 commit 1d86a91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resolwe_runtime_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def save(key, value):
where value can represent any JSON object.
"""
value = value.replace("\n", " ")
try:
value_json = json.loads(value)
except ValueError:
Expand Down

0 comments on commit 1d86a91

Please sign in to comment.