diff --git a/src/ahriman/application/ahriman.py b/src/ahriman/application/ahriman.py index 437069e6..cfe71728 100644 --- a/src/ahriman/application/ahriman.py +++ b/src/ahriman/application/ahriman.py @@ -81,6 +81,7 @@ def update(args: argparse.Namespace) -> None: packages = app.get_updates(args.package, args.no_aur, args.no_manual, args.no_vcs, log_fn) if args.dry_run: return + app.update(packages) diff --git a/src/ahriman/core/watcher/web_client.py b/src/ahriman/core/watcher/web_client.py index 6fbee43f..1ebdb329 100644 --- a/src/ahriman/core/watcher/web_client.py +++ b/src/ahriman/core/watcher/web_client.py @@ -68,7 +68,7 @@ class WebClient(Client): try: response = requests.post(self._url(package.base), json=payload) response.raise_for_status() - except: + except Exception: self.logger.exception(f'could not add {package.base}', exc_info=True) def remove(self, base: str) -> None: @@ -79,7 +79,7 @@ class WebClient(Client): try: response = requests.delete(self._url(base)) response.raise_for_status() - except: + except Exception: self.logger.exception(f'could not delete {base}', exc_info=True) def update(self, base: str, status: BuildStatusEnum) -> None: @@ -93,5 +93,5 @@ class WebClient(Client): try: response = requests.post(self._url(base), json=payload) response.raise_for_status() - except: + except Exception: self.logger.exception(f'could not update {base}', exc_info=True)