Fix crash when going up from root

This commit is contained in:
lel 2019-09-28 02:39:42 -04:00
parent 12587685d4
commit 3d8eecd346
1 changed files with 1 additions and 1 deletions

View File

@ -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: