From 0ddc83fb52cb0c090bc2342deda6ce8a8aebec58 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Wed, 4 Sep 2013 14:06:00 +0000 Subject: [PATCH] [r23030]Bug 7040: 4.0.2 svn 23029M fails to start catastrophically svn: r23031 --- gramps/gui/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/gui/utils.py b/gramps/gui/utils.py index 3a8ee470d..097769bc2 100644 --- a/gramps/gui/utils.py +++ b/gramps/gui/utils.py @@ -376,7 +376,7 @@ def display_error_dialog (index, errorstrings): ErrorDialog(_("Error from external program"), error) -def poll_external ((proc, errorstrings)): +def poll_external (args): """ Check the for completion of a task launched with subprocess.Popen(). This function is intended to be passed to @@ -387,7 +387,8 @@ def poll_external ((proc, errorstrings)): @errorstrings a dict of possible response values and the corresponding messages to display. @returns bool returned to timeout_add_seconds: should this function be called again? """ - resp = proc.poll() + (proc, errorstrings) = args + resp = proc.poll() if resp is None: return True