diff --git a/gramps/plugins/docgen/pdfdoc.py b/gramps/plugins/docgen/pdfdoc.py index fc56f00a6..3f2dc22c9 100644 --- a/gramps/plugins/docgen/pdfdoc.py +++ b/gramps/plugins/docgen/pdfdoc.py @@ -95,8 +95,9 @@ class PdfDoc(libcairodoc.CairoDoc): except IOError as msg: errmsg = "%s\n%s" % (_("Could not create %s") % filename, msg) raise ReportError(errmsg) - except: - raise ReportError(_("Could not create %s") % filename) + except Exception as err: + errmsg = "%s\n%s" % (_("Could not create %s") % filename, err) + raise ReportError(errmsg) surface.set_fallback_resolution(300, 300) cr = cairo.Context(surface) fontmap = PangoCairo.font_map_new()