Fix separate unrelated crash when going up from root

This commit is contained in:
lel 2019-09-28 02:40:18 -04:00
parent 3d8eecd346
commit 620800c9da
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class GeminiItem():
pathbits.pop()
# Don't try to go higher than root
if len(pathbits) == 1:
return self.url
return GeminiItem(self.url)
# Get rid of bottom component
pathbits.pop()
new_path = os.path.join(*pathbits)