mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-20 05:05:14 +02:00
fixed some shell bugs
This commit is contained in:
1 parent
3b0336bd7e
commit
952b4e7249
2 files changed
+11
-6
No files matched your search
+5
-2
@@ -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