Browse Source

Merge remote-tracking branch 'qubesos/pr/77'

* qubesos/pr/77:
  Don't catch AttributeError for is_outdated() call anymore
  Call is_outdated() on volume object, not name
Marek Marczykowski-Górecki 6 years ago
parent
commit
e1aca0a393
1 changed files with 4 additions and 7 deletions
  1. 4 7
      qubesmanager/table_widgets.py

+ 4 - 7
qubesmanager/table_widgets.py

@@ -376,13 +376,10 @@ class VmUpdateInfoWidget(QtGui.QWidget):
 
         outdated_state = False
 
-        try:
-            for vol in vm.volumes:
-                if vol.is_outdated():
-                    outdated_state = "outdated"
-                    break
-        except AttributeError:
-            pass
+        for vol in vm.volumes.values():
+            if vol.is_outdated():
+                outdated_state = "outdated"
+                break
 
         if not outdated_state and getattr(vm, 'template', None)\
                 and vm.template.is_running():