Fixed error on VM shutdown in Qube Manager

fixes QubesOS/qubes-issues#3501
This commit is contained in:
Marta Marczykowska-Górecka 2018-01-28 18:23:18 +01:00
parent 80aa99b3af
commit cb1519b56c
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -176,7 +176,7 @@ class VmShutdownMonitor(QtCore.QObject):
vm_is_running = vm.is_running()
try:
vm_start_time = datetime.fromtimestamp(float(vm.start_time))
except AttributeError:
except (AttributeError, TypeError):
vm_start_time = None
if vm_is_running and vm_start_time \