flake warnings (#304)

This commit is contained in:
Bruno Cabral
2022-12-12 02:44:27 -08:00
committed by GitHub
parent f10a3f1d1a
commit fb4109bd77
67 changed files with 252 additions and 248 deletions

View File

@@ -101,7 +101,7 @@ class UpdateApplicationIndex(Thread):
try:
self._indexer.update_index(self._mapping_apps.apps)
except:
except Exception:
finish_msg = self._i18n['error']
self._taskman.update_progress(self._id, 100, finish_msg)
@@ -150,7 +150,7 @@ class SynchronizePackages(Thread):
try:
last_timestamp = datetime.fromtimestamp(float(timestamp_str))
except:
except Exception:
logger.error(f'Could not parse the packages synchronization timestamp: {timestamp_str} '
f'({PACKAGE_SYNC_TIMESTAMP_FILE})')
traceback.print_exc()
@@ -169,7 +169,7 @@ class SynchronizePackages(Thread):
ti = time.time()
self._log.info("Begin: packages synchronization")
self._taskman.update_progress(self._id, 1, None)
handler = ProcessHandler(self._watcher)
updated, _ = handler.handle_simple(self._aptitude.update(self._root_password),
output_handler=self._notify_output)