mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
even aggressive autopep8
This commit is contained in:
parent
663e822a92
commit
3e0b3cdbaa
@ -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)
|
packages = app.get_updates(args.package, args.no_aur, args.no_manual, args.no_vcs, log_fn)
|
||||||
if args.dry_run:
|
if args.dry_run:
|
||||||
return
|
return
|
||||||
|
|
||||||
app.update(packages)
|
app.update(packages)
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ class WebClient(Client):
|
|||||||
try:
|
try:
|
||||||
response = requests.post(self._url(package.base), json=payload)
|
response = requests.post(self._url(package.base), json=payload)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
except:
|
except Exception:
|
||||||
self.logger.exception(f'could not add {package.base}', exc_info=True)
|
self.logger.exception(f'could not add {package.base}', exc_info=True)
|
||||||
|
|
||||||
def remove(self, base: str) -> None:
|
def remove(self, base: str) -> None:
|
||||||
@ -79,7 +79,7 @@ class WebClient(Client):
|
|||||||
try:
|
try:
|
||||||
response = requests.delete(self._url(base))
|
response = requests.delete(self._url(base))
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
except:
|
except Exception:
|
||||||
self.logger.exception(f'could not delete {base}', exc_info=True)
|
self.logger.exception(f'could not delete {base}', exc_info=True)
|
||||||
|
|
||||||
def update(self, base: str, status: BuildStatusEnum) -> None:
|
def update(self, base: str, status: BuildStatusEnum) -> None:
|
||||||
@ -93,5 +93,5 @@ class WebClient(Client):
|
|||||||
try:
|
try:
|
||||||
response = requests.post(self._url(base), json=payload)
|
response = requests.post(self._url(base), json=payload)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
except:
|
except Exception:
|
||||||
self.logger.exception(f'could not update {base}', exc_info=True)
|
self.logger.exception(f'could not update {base}', exc_info=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user