From 880ab5d665656ed32abcc3a8f08ba0c2566a5856 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Sun, 15 Feb 2015 19:43:09 +0000 Subject: [PATCH] Tests - Correct use of non-existent exception --- test/basetest/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))