Keep log files

This commit is contained in:
jeancf 2022-11-23 16:28:37 +01:00
parent db8d99fc4e
commit 7ebc2927a7

View File

@ -475,10 +475,10 @@ def main(argv):
exit(-1) exit(-1)
# Remove previous log file # Remove previous log file
try: # try:
os.remove(TOML['config']['twitter_account'] + '.log') # os.remove(TOML['config']['twitter_account'] + '.log')
except FileNotFoundError: # except FileNotFoundError:
pass # pass
# Setup logging to file # Setup logging to file
logging.basicConfig( logging.basicConfig(