Bug: index out of range
File: work/2018-08-someone.yml
Traceback (most recent call last):
File "workreport/workreport.py", line 283, in <module>
doc = Document.load_default()
File "workreport/workreport.py", line 249, in load_default
return cls.load(f)
File "workreport/workreport.py", line 244, in load
return cls(yaml.load(source))
File "workreport/workreport.py", line 239, in __init__
self.works = [Work(w, root=self.root, **defaults) for w in data['work']]
File "workreport/workreport.py", line 239, in <listcomp>
self.works = [Work(w, root=self.root, **defaults) for w in data['work']]
File "workreport/workreport.py", line 119, in __init__
self.parse(inputData)
File "workreport/workreport.py", line 206, in parse
self.parse_str(work)
File "workreport/workreport.py", line 183, in parse_str
while _split[0].startswith('~'):
IndexError: list index out of range
ERROR: Job failed: exit code 1
Yaml file caused this error;
name: someone
work:
- 8/41 3h agroup/aproejct - some code changes
- 8/42 13:00-16:00 ~office