aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-09-16 15:08:28 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-09-16 15:08:28 -0500
commit7893d43a8f7d3e42b21491444156c4a5308e211d (patch)
tree2abb0c25e981665f7845e749581418696b121688
parent13f37e75eb9a1f3e68b183eacfd1a51572d452c2 (diff)
downloadmediagoblin-7893d43a8f7d3e42b21491444156c4a5308e211d.tar.lz
mediagoblin-7893d43a8f7d3e42b21491444156c4a5308e211d.tar.xz
mediagoblin-7893d43a8f7d3e42b21491444156c4a5308e211d.zip
Fix exception catching on python 3
This commit sponsored by Paul Smith. Thank you!
-rw-r--r--mediagoblin/tests/test_metadata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_metadata.py b/mediagoblin/tests/test_metadata.py
index b4ea646e..a10e00ec 100644
--- a/mediagoblin/tests/test_metadata.py
+++ b/mediagoblin/tests/test_metadata.py
@@ -56,7 +56,7 @@ class TestMetadataFunctionality:
jsonld_fail_1 = None
try:
jsonld_fail_1 = compact_and_validate(metadata_fail_1)
- except ValidationError, e:
+ except ValidationError as e:
assert e.message == "'All Rights Reserved.' is not a 'uri'"
assert jsonld_fail_1 == None
#,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,
@@ -72,7 +72,7 @@ class TestMetadataFunctionality:
jsonld_fail_2 = None
try:
jsonld_fail_2 = compact_and_validate(metadata_fail_2)
- except ValidationError, e:
+ except ValidationError as e:
assert e.message == "'The other day' is not a 'date-time'"
assert jsonld_fail_2 == None