From 10bd93fb0319b8f2e95e27f616ab202467f9c364 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 10 Feb 2022 19:43:43 -0600 Subject: Don't create failed file if no downloads failed --- failed | 1 - mkbinder.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 failed diff --git a/failed b/failed deleted file mode 100644 index fe51488..0000000 --- a/failed +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/mkbinder.py b/mkbinder.py index 607e197..1bca79a 100755 --- a/mkbinder.py +++ b/mkbinder.py @@ -50,5 +50,6 @@ for category in os.listdir('Links'): failed.append(name) # Output failed downloads -print(failed) -print(failed, file=open('failed', 'w')) +if len(failed) > 0: + print(failed) + print(failed, file=open('failed', 'w')) -- cgit v1.2.3-70-g09d2