Skip to content

Commit

Permalink
#21: Fix is_valid_json
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Sep 23, 2019
1 parent f537c5d commit d031885
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def is_valid_json(string):
json_object = json.loads(string)
except ValueError:
return False
except TypeError:
return False
return True


Expand Down

0 comments on commit d031885

Please sign in to comment.