mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue