Skip to content

Commit 3f570cd

Browse files
author
Thang
committed
Added a 'w' flag to the log file, so it could be created.
1 parent d16cd2e commit 3f570cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Log to a timestamped log file
2424
def log(out, err):
2525
curTime = datetime.time(datetime.now()).isoformat()
26-
f = open(workingDir + '/error.log' + curTime)
26+
f = open(workingDir + '/error.log' + curTime, 'w')
2727
f.write('Could not update incrontab for %s' % changedDir + '\n')
2828
f.write('Failed output: \n')
2929
f.write(out + '\n')

0 commit comments

Comments
 (0)