mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 20:54:15 +02:00
flake warnings (#304)
This commit is contained in:
@@ -317,7 +317,7 @@ class FlatpakManager(SoftwareManager, SettingsController):
|
||||
if not res:
|
||||
self.logger.warning("Could not upgrade '{}'".format(req.pkg.id))
|
||||
return False
|
||||
except:
|
||||
except Exception:
|
||||
watcher.change_substatus('')
|
||||
self.logger.error("An error occurred while upgrading '{}'".format(req.pkg.id))
|
||||
traceback.print_exc()
|
||||
@@ -394,7 +394,7 @@ class FlatpakManager(SoftwareManager, SettingsController):
|
||||
if res.get(to_date):
|
||||
try:
|
||||
res[to_date] = datetime.strptime(res[to_date], DATE_FORMAT)
|
||||
except:
|
||||
except Exception:
|
||||
self.context.logger.error('Could not convert date string {} as {}'.format(res[to_date], DATE_FORMAT))
|
||||
pass
|
||||
|
||||
@@ -437,7 +437,7 @@ class FlatpakManager(SoftwareManager, SettingsController):
|
||||
watcher.print('Creating dir {}'.format(EXPORTS_PATH))
|
||||
try:
|
||||
Path(EXPORTS_PATH).mkdir(parents=True, exist_ok=True)
|
||||
except:
|
||||
except Exception:
|
||||
watcher.print('Error while creating the directory {}'.format(EXPORTS_PATH))
|
||||
return False
|
||||
|
||||
@@ -530,7 +530,7 @@ class FlatpakManager(SoftwareManager, SettingsController):
|
||||
if fields:
|
||||
pkg.ref = fields[0]
|
||||
pkg.branch = fields[1]
|
||||
except:
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
|
||||
if installed:
|
||||
@@ -735,7 +735,7 @@ class FlatpakManager(SoftwareManager, SettingsController):
|
||||
try:
|
||||
self.configman.save_config(flatpak_config)
|
||||
return True, None
|
||||
except:
|
||||
except Exception:
|
||||
return False, [traceback.format_exc()]
|
||||
|
||||
def get_upgrade_requirements(self, pkgs: List[FlatpakApplication], root_password: Optional[str], watcher: ProcessWatcher) -> UpgradeRequirements:
|
||||
|
||||
Reference in New Issue
Block a user