Browse Source

dispvm: convert exception object to string - otherwise it will not be visible

tray_notify_error can't handle arbitrary object.

Fixes QubesOS/qubes-issues#1457
Marek Marczykowski-Górecki 8 năm trước cách đây
mục cha
commit
56e6c01917
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dispvm/qfile-daemon-dvm

+ 1 - 1
dispvm/qfile-daemon-dvm

@@ -101,7 +101,7 @@ class QfileDaemonDvm:
         try:
             dispvm.start()
         except (MemoryError, QubesException) as e:
-            tray_notify_error(e)
+            tray_notify_error(str(e))
             raise
         if vm.qid != 0:
             # if need to enable/disable netvm, do it while DispVM is alive