[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Don't crash if there's no intf passed to getLUKSPassphrase.



---
 storage/devicetree.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index b528ab2..32a9904 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -81,6 +81,9 @@ def getLUKSPassphrase(intf, device, globalPassphrase):
         else:
             # we've opened the device so we're done.
             return (globalPassphrase, False)
+
+    if not intf:
+        return (None, None)
     
     buttons = [_("Back"), _("Continue")]
     passphrase_incorrect = False
-- 
1.6.5.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]