mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:29:00 +08:00
Do not inherit BaseException, but use Exception
As indicated by Python docs, custom exceptions should use Exception as base. Contributes to CURA-274
This commit is contained in:
parent
38a212810f
commit
9626a604c2
@ -58,7 +58,7 @@ class IspBase():
|
|||||||
raise IspError("Called undefined verifyFlash")
|
raise IspError("Called undefined verifyFlash")
|
||||||
|
|
||||||
|
|
||||||
class IspError(BaseException):
|
class IspError(Exception):
|
||||||
def __init__(self, value):
|
def __init__(self, value):
|
||||||
self.value = value
|
self.value = value
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user