summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcomedyGenerator3
1 files changed, 2 insertions, 1 deletions
diff --git a/comedyGenerator b/comedyGenerator
index 0d05108..65986d5 100755
--- a/comedyGenerator
+++ b/comedyGenerator
@@ -252,7 +252,8 @@ for tags in args.tags:
if args.verbose:
print("Writing " + logName + " to log file")
logFile.write(logName + "\n")
-logFile.close()
+if logging:
+ logFile.close()
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License version 3 as published by