Fix crash when going up from root
This commit is contained in:
parent
12587685d4
commit
3d8eecd346
2
av98.py
2
av98.py
|
@ -112,7 +112,7 @@ class GeminiItem():
|
||||||
def up(self):
|
def up(self):
|
||||||
pathbits = list(os.path.split(self.path))
|
pathbits = list(os.path.split(self.path))
|
||||||
# Get rid of empty string from trailing /
|
# Get rid of empty string from trailing /
|
||||||
while not pathbits[-1]:
|
if not pathbits[-1]:
|
||||||
pathbits.pop()
|
pathbits.pop()
|
||||||
# Don't try to go higher than root
|
# Don't try to go higher than root
|
||||||
if len(pathbits) == 1:
|
if len(pathbits) == 1:
|
||||||
|
|
Loading…
Reference in New Issue