From 2f3a97dbd27c691846d831ec73f40a54e6754ecc Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Tue, 5 Mar 2019 00:26:30 +0100 Subject: [PATCH] Fix in debug errors --- paramecio/citoplasma/error_reporting.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paramecio/citoplasma/error_reporting.py b/paramecio/citoplasma/error_reporting.py index 842cb60..04b75de 100644 --- a/paramecio/citoplasma/error_reporting.py +++ b/paramecio/citoplasma/error_reporting.py @@ -26,13 +26,12 @@ class ErrorReportingPlugin(object): return rv - except: - + except Exception as exception: #print('detected error') # Send mail with error. - if email_failed!='': + if email_failed!='' and type(exception).__name__!='HTTPResponse': sendmail=SendMail()