Skip to content

cryptic KeyError for sfftk #1

Open
@paulkorir

Description

@paulkorir
sff notes search thermoautotrophicum
Search Resource:
name:           OLS
root_url:       https://www.ebi.ac.uk/ols/api/
search_url:     https://www.ebi.ac.uk/ols/api/search?q=thermoautotrophicum&start=0&rows=10&local=true
format:         json
result_path:    ['response', 'docs']
result_count:   ['response', 'numFound']
Traceback (most recent call last):
  File "/Users/pkorir/Envs/sfftk-python3.7/bin/sff", line 11, in <module>
    load_entry_point('sfftk-plus', 'console_scripts', 'sff')()
  File "/Users/pkorir/PycharmProjects/sfftk-plus/sfftkplus/sffplus.py", line 411, in main
    return sff.handle_notes(args, configs)
  File "/Users/pkorir/PycharmProjects/sfftk/sfftk/sff.py", line 358, in handle_notes
    return handle_notes_search(args, configs)
  File "/Users/pkorir/PycharmProjects/sfftk/sfftk/sff.py", line 131, in handle_notes_search
    print(result)
  File "/Users/pkorir/PycharmProjects/sfftk/sfftk/notes/find.py", line 695, in __str__
    return self.tabulate()
  File "/Users/pkorir/PycharmProjects/sfftk/sfftk/notes/find.py", line 748, in tabulate
    table += _str(ResultsTable(self, fields=fields))
  File "/Users/pkorir/PycharmProjects/sfftk/sfftk/notes/find.py", line 616, in __str__
    string += self.body
  File "/Users/pkorir/PycharmProjects/sfftk/sfftk/notes/find.py", line 583, in body
    body += _str(TableRow(row_data, self._fields, index)) + self.row_separator
  File "/Users/pkorir/Envs/sfftk-python3.7/lib/python3.7/site-packages/styled/styled.py", line 201, in __add__
    return Styled(self.plain + other)
  File "/Users/pkorir/Envs/sfftk-python3.7/lib/python3.7/site-packages/styled/styled.py", line 51, in __init__
    self._plain = self._s.format(*args, **kwargs)
KeyError: '7-'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions