aboutsummaryrefslogtreecommitdiff
path: root/mkbinder.py
diff options
context:
space:
mode:
authorAnthony Wang2022-02-10 19:43:43 -0600
committerAnthony Wang2022-02-10 19:43:43 -0600
commit10bd93fb0319b8f2e95e27f616ab202467f9c364 (patch)
treee2e556e6f6596daa1f9793f14c7443ba282dd038 /mkbinder.py
parent2185a1d23519df5eb6173e733999c119155bd381 (diff)
Don't create failed file if no downloads failed
Diffstat (limited to 'mkbinder.py')
-rwxr-xr-xmkbinder.py5
1 files changed, 3 insertions, 2 deletions
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'))