diff --git a/test/basetest/hooks.py b/test/basetest/hooks.py index d8b7b3377..cfb364893 100644 --- a/test/basetest/hooks.py +++ b/test/basetest/hooks.py @@ -32,7 +32,7 @@ def json_decoder(string): try: return decoder(string) - except json.JSONDecodeError as e: + except ValueError as e: return InvalidJSON(string, str(e))