mirror of
https://github.com/isjerryxiao/pacroller.git
synced 2024-11-25 17:20:41 +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':
|
elif args.action == 'status':
|
||||||
count = 0
|
count = 0
|
||||||
failed = False
|
failed = False
|
||||||
|
for entry in read_db():
|
||||||
|
if e := entry.get('error'):
|
||||||
|
print(e)
|
||||||
|
failed = True
|
||||||
|
break
|
||||||
for entry in read_db():
|
for entry in read_db():
|
||||||
if report_dict := entry.get('report'):
|
if report_dict := entry.get('report'):
|
||||||
count += 1
|
count += 1
|
||||||
report = checkReport(**report_dict)
|
report = checkReport(**report_dict)
|
||||||
if count == 1:
|
if not failed and count == 1:
|
||||||
failed = report.failed
|
failed = report.failed
|
||||||
print(report.summary(verbose=args.verbose, show_package=True))
|
print(report.summary(verbose=args.verbose, show_package=True))
|
||||||
if count >= args.max and args.max > 0:
|
if count >= args.max and args.max > 0:
|
||||||
|
|
Loading…
Reference in a new issue