fix: don't source empty share directory

This commit is contained in:
Daylin Morgan 2023-06-12 13:38:53 -05:00
parent 39786aae21
commit 095e1017b2
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -50,7 +50,7 @@ from typing import (
from urllib.error import HTTPError from urllib.error import HTTPError
from urllib.request import urlopen from urllib.request import urlopen
__version__ = "23.5a5-27-ge697488-dev" __version__ = "23.5a5-28-g39786aa-dev"
class Spinner: class Spinner:
@ -973,10 +973,11 @@ class Viv:
else: else:
try: try:
_local_viv = __import__("viv") _local_viv = __import__("viv")
self.local_source = ( if _local_viv.__file__:
Path(_local_viv.__file__) if _local_viv.__file__ else None self.local_source = Path(_local_viv.__file__)
)
self.local_version = _local_viv.__version__ self.local_version = _local_viv.__version__
else:
self.local_version = "Not Found"
except ImportError: except ImportError:
self.local_version = "Not Found" self.local_version = "Not Found"