From 91bfdba9c8f051f0b3532d04525f79336ede6240 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 9 Oct 2005 11:49:41 +0000 Subject: [PATCH] catch a typeerror tb and fallback, because vanilla gnomepython 2.12 has bad patch in Mandriva. thx dakilla --- src/gajim.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 1dcbac027..a03c672ae 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1314,9 +1314,12 @@ if __name__ == '__main__': if path_to_gajim_script: argv = [path_to_gajim_script] - if gnome.gnome_python_version >= (2, 12, 0): + # FIXME: remove this typeerror catch when gnome python is old and + # not bad patched by distro men [2.12.0 + should not need all that + # NORMALLY] + try: cli.set_restart_command(argv) - else: + except TypeError: cli.set_restart_command(len(argv), argv) try: