From 9626a604c26e1d1461e49ac58d98eeaa5d631c23 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Fri, 30 Oct 2015 13:44:04 +0100 Subject: [PATCH] Do not inherit BaseException, but use Exception As indicated by Python docs, custom exceptions should use Exception as base. Contributes to CURA-274 --- plugins/USBPrinting/avr_isp/ispBase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/USBPrinting/avr_isp/ispBase.py b/plugins/USBPrinting/avr_isp/ispBase.py index 1ba1317f91..b7650d7290 100644 --- a/plugins/USBPrinting/avr_isp/ispBase.py +++ b/plugins/USBPrinting/avr_isp/ispBase.py @@ -58,7 +58,7 @@ class IspBase(): raise IspError("Called undefined verifyFlash") -class IspError(BaseException): +class IspError(Exception): def __init__(self, value): self.value = value