You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
738 B
26 lines
738 B
diff --git a/ui5/devmgr5.py b/ui5/devmgr5.py
|
|
index c23957a..48b248f 100644
|
|
--- a/ui5/devmgr5.py
|
|
+++ b/ui5/devmgr5.py
|
|
@@ -2300,14 +2300,15 @@ class PasswordDialog(QDialog):
|
|
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
|
|
|
def showPasswordUI(prompt):
|
|
+ dlg = None
|
|
+
|
|
try:
|
|
dlg = PasswordDialog(prompt, None)
|
|
+ except Exception as e:
|
|
+ log.error('Unable to open password dialog due following error:\n {}'.format(e))
|
|
|
|
- if dlg.exec_() == QDialog.Accepted:
|
|
- return (dlg.getUsername(), dlg.getPassword())
|
|
-
|
|
- finally:
|
|
- pass
|
|
+ if dlg and dlg.exec_() == QDialog.Accepted:
|
|
+ return (dlg.getUsername(), dlg.getPassword())
|
|
|
|
return ("", "")
|
|
|