Open
Description
$ pythonbits 'any/existing/path/without/season/info' -c tv -f description
[...]
Traceback (most recent call last):
File "/path/to/pythonBits/pythonbits/__main__.py", line 137, in main
_main(Category, set_fields, get_fields)
File "/path/to/pythonBits/pythonbits/__main__.py", line 113, in _main
sub.show_fields(get_fields)
File "/path/to/pythonBits/pythonbits/bb.py", line 51, in show_fields
return super(BbSubmission, self).show_fields(
File "/path/to/pythonBits/pythonbits/submission.py", line 236, in show_fields
val = self[field]
File "/path/to/pythonBits/pythonbits/submission.py", line 115, in __getitem__
rv = field_renderer()
File "/path/to/pythonBits/pythonbits/bb.py", line 633, in _render_description
sections = [("Description", self['section_description']),
File "/path/to/pythonBits/pythonbits/submission.py", line 115, in __getitem__
rv = field_renderer()
File "/path/to/pythonBits/pythonbits/bb.py", line 561, in _render_section_description
summary = self['summary']
File "/path/to/pythonBits/pythonbits/submission.py", line 115, in __getitem__
rv = field_renderer()
File "/path/to/pythonBits/pythonbits/bb.py", line 557, in _render_summary
result = t.search(self['tv_specifier'])
File "/path/to/pythonBits/pythonbits/submission.py", line 115, in __getitem__
rv = field_renderer()
File "/path/to/pythonBits/pythonbits/bb.py", line 249, in _render_tv_specifier
return TvSpecifier(title, guess['season'],
KeyError: 'season'
This was fixed by my ugly confirmed_guess
hack but is now an issue again after you
reverted it.
As you said in the PR comment, this can be fixed by explicitly mentioning the season in
the TITLE
argument, but the exception above leaves the user hanging with no information
what went wrong and what to do.