Merge remote-tracking branch 'qubesos/pr/61'
* qubesos/pr/61: Once more to fix this pesky bug
This commit is contained in:
commit
1fe280538e
@ -176,7 +176,7 @@ class VmShutdownMonitor(QtCore.QObject):
|
|||||||
vm_is_running = vm.is_running()
|
vm_is_running = vm.is_running()
|
||||||
try:
|
try:
|
||||||
vm_start_time = datetime.fromtimestamp(float(vm.start_time))
|
vm_start_time = datetime.fromtimestamp(float(vm.start_time))
|
||||||
except (AttributeError, TypeError):
|
except (AttributeError, TypeError, ValueError):
|
||||||
vm_start_time = None
|
vm_start_time = None
|
||||||
|
|
||||||
if vm_is_running and vm_start_time \
|
if vm_is_running and vm_start_time \
|
||||||
|
Loading…
Reference in New Issue
Block a user