mirror of
https://github.com/isjerryxiao/pacroller.git
synced 2024-11-14 12:22:23 +08:00
there could be an exc
This commit is contained in:
parent
b43589a01e
commit
7c67531f48
1 changed files with 6 additions and 1 deletions
|
@ -252,11 +252,16 @@ def main() -> None:
|
|||
elif args.action == 'status':
|
||||
count = 0
|
||||
failed = False
|
||||
for entry in read_db():
|
||||
if e := entry.get('error'):
|
||||
print(e)
|
||||
failed = True
|
||||
break
|
||||
for entry in read_db():
|
||||
if report_dict := entry.get('report'):
|
||||
count += 1
|
||||
report = checkReport(**report_dict)
|
||||
if count == 1:
|
||||
if not failed and count == 1:
|
||||
failed = report.failed
|
||||
print(report.summary(verbose=args.verbose, show_package=True))
|
||||
if count >= args.max and args.max > 0:
|
||||
|
|
Loading…
Reference in a new issue