Alon Bar-Lev has uploaded a new change for review.

Change subject: dialog: getpass: do not ignore signals
......................................................................

dialog: getpass: do not ignore signals

Change-Id: I6965d3edfab1bb3a3658f6431f2145d68daeae99
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M src/otopi/dialog.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/49/11349/1

diff --git a/src/otopi/dialog.py b/src/otopi/dialog.py
index 189975e..3bd9ab8 100644
--- a/src/otopi/dialog.py
+++ b/src/otopi/dialog.py
@@ -243,8 +243,11 @@
                     value = getpass.getpass(prompt='', stream=null)
                     self.__output.write('\n')
                     getpass_error = False
+            except RuntimeError as e:
+                # probably signal
+                raise e
             except:
-                self.logger.debug('getpass')
+                self.logger.debug('getpass', exc_info=True)
             finally:
                 os.dup2(old, 0)
 


--
To view, visit http://gerrit.ovirt.org/11349
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6965d3edfab1bb3a3658f6431f2145d68daeae99
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to