From 0f787b4ef45ef260e29c33f06bd3db3455009adf Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 15 2016 12:49:54 +0000 Subject: Apparently using LOG.exception here raises another exception. So demoting to use LOG.debug instead of LOG.exception. The error has been reported by email and this fix has been tested and does solve the issue (although, it's an odd one, granted). --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index 5e15bfd..d100911 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -2982,8 +2982,9 @@ def text2markdown(text, extended=True, readme=False): try: text = md_processor.convert(text) except Exception as err: - LOG.exception( - 'A markdown error occured while processing: ``%s``' % text) + LOG.debug( + 'A markdown error occured while processing: ``%s``', + str(text)) return clean_input(text) return ''