From d7bb7933ca57333dbfb6b5ee63d849716cfeedd2 Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Mon, 2 Oct 2023 10:11:49 +0200 Subject: [PATCH] Update init.py --- edlclient/Library/Modules/init.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/edlclient/Library/Modules/init.py b/edlclient/Library/Modules/init.py index eb3a4fc..9566a1b 100644 --- a/edlclient/Library/Modules/init.py +++ b/edlclient/Library/Modules/init.py @@ -12,18 +12,21 @@ from edlclient.Library.utils import LogBase try: from edlclient.Library.Modules.generic import generic except ImportError as e: + self.error(e) generic = None pass try: from edlclient.Library.Modules.oneplus import oneplus except ImportError as e: + self.error(e) oneplus = None pass try: from edlclient.Library.Modules.xiaomi import xiaomi except ImportError as e: + self.error(e) xiaomi = None pass @@ -47,17 +50,20 @@ class modules(metaclass=LogBase): try: self.generic = generic(fh=self.fh, serial=self.serial, args=self.args, loglevel=loglevel) except Exception as e: + self.error(e) pass self.ops = None try: self.ops = oneplus(fh=self.fh, projid=self.devicemodel, serial=self.serial, supported_functions=self.supported_functions, args=self.args, loglevel=loglevel) except Exception as e: + self.error(e) pass self.xiaomi = None try: self.xiaomi = xiaomi(fh=self.fh) except Exception as e: + self.error(e) pass def addpatch(self):