summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2025-08-17 19:53:51 -0500
committermsglm <msglm@techchud.xyz>2025-08-17 19:53:51 -0500
commitffa55abfe573b6a9c69fdbbb9b5c6224afddddab (patch)
tree67a7dd6e1c2eed1025b2f5efaeae21a4bb37f7cc
parente64217a06784809b49405d865f2f25776da1ec46 (diff)
downloadcomedyGenerator-ffa55abfe573b6a9c69fdbbb9b5c6224afddddab.tar.gz
comedyGenerator-ffa55abfe573b6a9c69fdbbb9b5c6224afddddab.tar.bz2
comedyGenerator-ffa55abfe573b6a9c69fdbbb9b5c6224afddddab.zip
removing error due to logging
-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