mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-17 23:13:03 +08:00
refactor(AutoLib): 初始化 AutoLib 时,发生错误则抛出异常
This commit is contained in:
@@ -41,10 +41,10 @@ class AutoLib(MsgBase):
|
||||
self.__user_config = None
|
||||
self.__driver = None
|
||||
if not self.__initBrowserDriver():
|
||||
return None
|
||||
raise Exception("浏览器驱动初始化失败")
|
||||
else:
|
||||
if not self.__initDriverUrl():
|
||||
return None
|
||||
raise Exception("浏览器驱动URL初始化失败")
|
||||
self.__initLibOperators()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user