mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-02-17 13:58:11 +00:00
Keep log file history
This commit is contained in:
parent
e8c03ab50b
commit
bd7860bb43
8
twoot.py
8
twoot.py
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user