mirror of
https://github.com/bkerler/edl.git
synced 2024-11-14 19:14:58 -05:00
Update init.py
This commit is contained in:
parent
356ab5e3a2
commit
d7bb7933ca
1 changed files with 6 additions and 0 deletions
|
@ -12,18 +12,21 @@ from edlclient.Library.utils import LogBase
|
||||||
try:
|
try:
|
||||||
from edlclient.Library.Modules.generic import generic
|
from edlclient.Library.Modules.generic import generic
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
|
self.error(e)
|
||||||
generic = None
|
generic = None
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from edlclient.Library.Modules.oneplus import oneplus
|
from edlclient.Library.Modules.oneplus import oneplus
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
|
self.error(e)
|
||||||
oneplus = None
|
oneplus = None
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from edlclient.Library.Modules.xiaomi import xiaomi
|
from edlclient.Library.Modules.xiaomi import xiaomi
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
|
self.error(e)
|
||||||
xiaomi = None
|
xiaomi = None
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -47,17 +50,20 @@ class modules(metaclass=LogBase):
|
||||||
try:
|
try:
|
||||||
self.generic = generic(fh=self.fh, serial=self.serial, args=self.args, loglevel=loglevel)
|
self.generic = generic(fh=self.fh, serial=self.serial, args=self.args, loglevel=loglevel)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
self.error(e)
|
||||||
pass
|
pass
|
||||||
self.ops = None
|
self.ops = None
|
||||||
try:
|
try:
|
||||||
self.ops = oneplus(fh=self.fh, projid=self.devicemodel, serial=self.serial,
|
self.ops = oneplus(fh=self.fh, projid=self.devicemodel, serial=self.serial,
|
||||||
supported_functions=self.supported_functions, args=self.args, loglevel=loglevel)
|
supported_functions=self.supported_functions, args=self.args, loglevel=loglevel)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
self.error(e)
|
||||||
pass
|
pass
|
||||||
self.xiaomi = None
|
self.xiaomi = None
|
||||||
try:
|
try:
|
||||||
self.xiaomi = xiaomi(fh=self.fh)
|
self.xiaomi = xiaomi(fh=self.fh)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
self.error(e)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def addpatch(self):
|
def addpatch(self):
|
||||||
|
|
Loading…
Reference in a new issue