AV-98-fork

A fork of https://tildegit.org/solderpunk/AV-98
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 3d8eecd346c34712e31924f2e8715f61b216f41b
parent 12587685d437cd2e6e1a819cc048e1c46258687d
Author: lel <lel@envs.net>
Date:   Sat, 28 Sep 2019 02:39:42 -0400

Fix crash when going up from root

Diffstat:
Mav98.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/av98.py b/av98.py @@ -112,7 +112,7 @@ class GeminiItem(): def up(self): pathbits = list(os.path.split(self.path)) # Get rid of empty string from trailing / - while not pathbits[-1]: + if not pathbits[-1]: pathbits.pop() # Don't try to go higher than root if len(pathbits) == 1: