Fix Python 3 incompatibility.
[python-bulletml.git] / bulletml / parser.py
index b2e078b..86dfe3c 100644 (file)
@@ -774,7 +774,7 @@ class BulletML(object):
         else:
             try:
                 return yaml.load(source)
-            except Exception, exc:
+            except Exception as exc:
                 raise ParseError(str(exc))
 
     @classmethod