From 4de5360ac592aa3fcc8ff3dbc3c484c76a92096d Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Mon, 8 Aug 2016 10:43:48 +0200 Subject: [PATCH] Use Logger.log instead of Logger.logException CURA-1923 --- plugins/SliceInfoPlugin/SliceInfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py index 7277bfaeec..047a03575d 100644 --- a/plugins/SliceInfoPlugin/SliceInfo.py +++ b/plugins/SliceInfoPlugin/SliceInfo.py @@ -48,9 +48,9 @@ class SliceInfoJob(Job): Logger.log("i", "Sent anonymous slice info to %s", self.url) f.close() except urllib.error.HTTPError as http_exception: - Logger.log("e", "An exception occurred while trying to send slice information: %s" %(repr(http_exception))) - except Exception: # Includes urllib.error.HTTPError, was discussed to be handled like any other exception - Logger.logException("e", "An exception occurred while trying to send slice information") + Logger.log("e", "An HTTP error occurred while trying to send slice information: %s" % http_exception) + except Exception as e: # We don't want any exception to cause problems + Logger.log("e", "An exception occurred while trying to send slice information: %s" % e) ## This Extension runs in the background and sends several bits of information to the Ultimaker servers. # The data is only sent when the user in question gave permission to do so. All data is anonymous and