fixed some shell bugs

This commit is contained in:
Xatrekak
2023-02-11 23:24:23 -05:00
parent 3b0336bd7e
commit 952b4e7249
2 changed files with 11 additions and 6 deletions

View File

@ -107,8 +107,11 @@ def gns3vm_version():
"""
Return the GNS3 VM version
"""
with open('/home/gns3/.config/GNS3/gns3vm_version') as f:
return f.read().strip()
try:
with open('/home/gns3/.config/GNS3/gns3vm_version') as f:
return f.read().strip()
except FileNotFoundError:
return "Remote Install"
d = Dialog(dialog="dialog", autowidgetsize=True)