mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 13:59:03 +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")
|
||||
|
||||
|
||||
class IspError(BaseException):
|
||||
class IspError(Exception):
|
||||
def __init__(self, value):
|
||||
self.value = value
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user