mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-19 11:42:43 +00:00
correct None value when repo is empty
This commit is contained in:
parent
c51e49061a
commit
645118339b
@ -46,7 +46,7 @@ def calc_repo_size(path: Path):
|
||||
print(f" {res[1]} packages, {res[0]} bytes in total", flush=True)
|
||||
|
||||
global REPO_STAT
|
||||
REPO_STAT[str(path)] = res
|
||||
REPO_STAT[str(path)] = res if res[1] > 0 else (0, 0) # res[0] can be None
|
||||
|
||||
|
||||
def check_args(prop: str, lst: List[str]):
|
||||
|
Loading…
x
Reference in New Issue
Block a user