diff options
-rw-r--r-- | markdown/__main__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/__main__.py b/markdown/__main__.py index 60706b1..8dd8d38 100644 --- a/markdown/__main__.py +++ b/markdown/__main__.py @@ -78,7 +78,7 @@ def parse_options(args=None, values=None): with codecs.open(options.configfile, mode="r", encoding=options.encoding) as fp: try: extension_configs = yaml.load(fp) - except yaml.YAMLError as e: + except Exception as e: message = "Failed parsing extension config file: %s" % options.configfile e.args = (message,) + e.args[1:] raise |