catch a typeerror tb and fallback, because vanilla gnomepython 2.12 has bad patch in Mandriva. thx dakilla

This commit is contained in:
Nikos Kouremenos 2005-10-09 11:49:41 +00:00
parent b4cdd59c84
commit 91bfdba9c8
1 changed files with 5 additions and 2 deletions

View File

@ -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: