mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-21 16:39:40 +00:00
fixed some shell bugs
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user