Skip to content

Commit 0411332

Browse files
committed
Make exception raising work on python 3.
1 parent 9db8a65 commit 0411332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ class SimulateFieldStorageFromJson():
14391439
def __init__(self, json_string):
14401440
''' Parse the json string into an internal dict. '''
14411441
def raise_error_on_constant(x):
1442-
raise ValueError, "Unacceptable number: %s"%x
1442+
raise ValueError("Unacceptable number: %s"%x)
14431443

14441444
self.json_dict = json.loads(json_string,
14451445
parse_constant = raise_error_on_constant)

0 commit comments

Comments
 (0)