Tests - Correct use of non-existent exception
This commit is contained in:
@@ -32,7 +32,7 @@ def json_decoder(string):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
return decoder(string)
|
return decoder(string)
|
||||||
except json.JSONDecodeError as e:
|
except ValueError as e:
|
||||||
return InvalidJSON(string, str(e))
|
return InvalidJSON(string, str(e))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user