Traceback (most recent call last): File "/home/user/scripts/battery_check/battery_check.py", line 20, in <module> logfile.append(add_time) AttributeError: 'file' object has no attribute 'append'
logfile = open(date_stamp, 'w') logfile.append(add_time)