Re-raise errors that aren't expectd

This commit is contained in:
Ben Jackson 2020-07-11 14:42:35 +01:00
commit 0de023e3c4
2 changed files with 2 additions and 4 deletions

View file

@ -82,8 +82,8 @@ class CodeView( object ):
frame[ 'source' ][ 'path' ] ) )
except vim.error as e:
# Ignore 'invalid buffer name'
if 'E158' in str( e ):
pass
if 'E158' not in str( e ):
raise
if not self._window.valid:
return False