mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
CURA-1923: Don't return a complete traceback on HTTPError
As discussed on GitHub we don't need a complete traceback on HTTPError. However URLError should return a full traceback, like any other exception that might occur.
This commit is contained in:
parent
7c6df5a485
commit
8e92cb4c91
@ -47,7 +47,9 @@ class SliceInfoJob(Job):
|
||||
f = urllib.request.urlopen(self.url, **kwoptions)
|
||||
Logger.log("i", "Sent anonymous slice info to %s", self.url)
|
||||
f.close()
|
||||
except Exception:
|
||||
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")
|
||||
|
||||
## This Extension runs in the background and sends several bits of information to the Ultimaker servers.
|
||||
|
Loading…
x
Reference in New Issue
Block a user