提前初始化updatelist,fix找不找变量的问题

This commit is contained in:
luoxueyi 2021-11-01 16:45:01 +08:00
parent 19181ab7b4
commit 76984f6750
1 changed files with 2 additions and 1 deletions

View File

@ -198,6 +198,8 @@ class UpdateManager():
"message:\n") + str(e) "message:\n") + str(e)
_success = False _success = False
return _success,header,desc return _success,header,desc
self.update_list = UpdateList(self)
#更新important.list #更新important.list
if self.options.no_update_source is False: if self.options.no_update_source is False:
@ -210,7 +212,6 @@ class UpdateManager():
if _success == False: if _success == False:
return _success,header,desc return _success,header,desc
self.update_list = UpdateList(self)
try: try:
_success,header,desc = self.update_list.update(self.cache) _success,header,desc = self.update_list.update(self.cache)
except SystemError as e: except SystemError as e: