Keep log file history

This commit is contained in:
BuildTools 2022-11-06 11:56:29 +01:00
parent e8c03ab50b
commit bd7860bb43

View File

@ -278,10 +278,10 @@ def main(argv):
cap = int(args['c']) cap = int(args['c'])
# Remove previous log file # Remove previous log file
try: # try:
os.remove(twit_account + '.log') # os.remove(twit_account + '.log')
except FileNotFoundError: #except FileNotFoundError:
pass # pass
# Setup logging to file # Setup logging to file
logging.basicConfig( logging.basicConfig(