No longer handles initial usage
I think this is because of the recent change to open. On first start I see:
Traceback (most recent call last):
File "/home/ryan/.local/lib/python3.7/site-packages/gtimelog/timelog.py", line 679, in load
with open(self.filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ryan/.gtimelog/tasks.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ryan/.local/lib/python3.7/site-packages/gtimelog/main.py", line 1929, in _activate
tasks = TaskList(os.path.join(configdir, 'tasks.txt'))
File "/home/ryan/.local/lib/python3.7/site-packages/gtimelog/timelog.py", line 653, in __init__
self.load()
File "/home/ryan/.local/lib/python3.7/site-packages/gtimelog/timelog.py", line 685, in load
print(e.message)
AttributeError: 'FileNotFoundError' object has no attribute 'message'
After setting up gtimelogrc, I instead get:
Traceback (most recent call last):
File "/home/ryan/.local/lib/python3.7/site-packages/gtimelog/timelog.py", line 679, in load
with open(self.filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ryan/.gtimelog/remote-tasks.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ryan/.local/lib/python3.7/site-packages/gtimelog/main.py", line 1927, in _activate
os.path.join(configdir, 'remote-tasks.txt'))
File "/home/ryan/.local/lib/python3.7/site-packages/gtimelog/collabora.py", line 228, in __init__
TaskList.__init__(self, cache_filename)
File "/home/ryan/.local/lib/python3.7/site-packages/gtimelog/timelog.py", line 653, in __init__
self.load()
File "/home/ryan/.local/lib/python3.7/site-packages/gtimelog/timelog.py", line 685, in load
print(e.message)
AttributeError: 'FileNotFoundError' object has no attribute 'message'
cc @smcv