mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-06-27 22:31:43 +00:00
even aggressive autopep8
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user