Traceback (most recent c
all last):
File "/home/olli/.pyenv/versions/neovim3/lib/python3.7/site-packages/pynvim/plugin/script_host.py", line 93, in python_execute
exec(script, self.module.__dict__)
File "<string>", line 1, in <module>
File "/home/olli/.local/share/nvim/plugged/coverage-highlight.vim/pythonx/coverage_highlight.py", line 338, in highlight
parse_coverage_output(output, relfilename)
File "/home/olli/.local/share/nvim/plugged/coverage-highlight.vim/pythonx/coverage_highlight.py", line 208, in parse_coverage_output
parse_lines(missing, signs)
File "/home/olli/.local/share/nvim/plugged/coverage-highlight.vim/pythonx/coverage_highlight.py", line 158, in wrapped
return fn(*args, **kw)
File "/home/olli/.local/share/nvim/plugged/coverage-highlight.vim/pythonx/coverage_highlight.py", line 257, in parse_lines
src, dst = map(int, item.split('->'))
ValueError: invalid literal for int() with base 10: 'exit'
def foobar():
try:
foo = int(os.environ.get('FOO', 3))
except ValueError:
pass
else:
if foo: # <--- this is the branch to exit
# do something here
pass
coverage report looks like this:
the code looks like this: