diff svnwrap/svn_swig_wrapper.py @ 36:c4523e651325

Fix tests against the improved SWIG bindings in Subversion 1.6.
author Augie Fackler <durin42@gmail.com>
date Sat, 18 Oct 2008 18:56:09 -0500
parents 2953c867ca99
children ce00e6ffaa90
line wrap: on
line diff
--- a/svnwrap/svn_swig_wrapper.py
+++ b/svnwrap/svn_swig_wrapper.py
@@ -40,9 +40,15 @@ def _create_auth_baton(pool):
         ]
     # Platform-dependant authentication methods
     if hasattr(client, 'get_windows_simple_provider'):
-        providers.append(client.get_windows_simple_provider())
+        try:
+            providers.append(client.get_windows_simple_provider())
+        except:
+            pass
     if hasattr(client, 'get_keychain_simple_provider'):
-        providers.append(client.get_keychain_simple_provider())
+        try:
+            providers.append(client.get_keychain_simple_provider())
+        except:
+            pass
     providers.extend([client.get_simple_prompt_provider(user_pass_prompt, 2),
                      ])
     return core.svn_auth_open(providers, pool)