From d1bb06f350e5e81ad95b6d004785174dd7c74f26 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 23 Aug 2015 22:47:33 -0400 Subject: [PATCH] Add logging to mark instances where getting the page count of a file may fails because it is not an office format file. --- mayan/apps/converter/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/converter/classes.py b/mayan/apps/converter/classes.py index 7a46e173b0..f054d29162 100644 --- a/mayan/apps/converter/classes.py +++ b/mayan/apps/converter/classes.py @@ -201,7 +201,7 @@ class ConverterBase(object): try: self.soffice_file = self.to_pdf() except InvalidOfficeFormat: - pass + logger.debug('Is not an office format document; %s', exception) class BaseTransformation(object):