From 02efcd603b5ebfd76823afdc15dee3878dad04db Mon Sep 17 00:00:00 2001 From: Victor Lopez Date: Sun, 24 Feb 2019 20:59:52 +0000 Subject: filter out empty lines before parsing the status --- ranger/ext/vcs/svn.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ranger/ext/vcs/svn.py b/ranger/ext/vcs/svn.py index ef958a24..27216a43 100644 --- a/ranger/ext/vcs/svn.py +++ b/ranger/ext/vcs/svn.py @@ -98,6 +98,7 @@ class SVN(Vcs): # Paths with status lines = self._run(['status']).split('\n') + lines = list(filter(None, lines)) if not lines: return 'sync' for line in lines: @@ -116,6 +117,7 @@ class SVN(Vcs): # Paths with status lines = self._run(['status']).split('\n') + lines = list(filter(None, lines)) for line in lines: code, path = line[0], line[8:] if code == ' ': -- cgit 1.4.1-2-gfad0