Thank you Barry, appreciate it. I will keep an eye out for a new version when you release it. In the meantime I'll use your work-around. I have also updated the stackoverflow thread with your answer. Thank you for the help.
Hi, thank you for the reply. Here is a full example you can run which shows the possible bug: Uncomment/comment the two "url =" lines to see the difference in exception handling import pysvn def connect_and_checkout(): client = pysvn.Client() client.callback_get_login = svnlogin client.callback_notify = notify try: client.checkout(svnurl(), './examples/pysvntest') print("done") except pysvn.ClientError as e: print("SVN Error occured: ", e) def svnlogin(realm="aaa", username="bbb", password="ccc"):...
Hi, thank you for the reply. "ClientError" isn't raised if the input value is garbage, it is only raised if the input itself is semi valid. For an example "www.example.com/svn" raises ClientError, but "trashinput123" doesn't raise the exception, (see my output example above). You can try my code above, (change the return value of svnurl() to something that isn't a valid SVN url) I suppose I could do some sort input validation beforehand, but seems ineffective when all I really want is an exception...
Hi, thank you for the reply. "ClientError" isn't raised if the input value is garbage, it is only raised if the input itself is semi valid. For an example "www.example.com/svn" raises ClientError, but "trashinput123" doesn't raise the exception, (see my output example above). You can try my code above, (change the return value of svnurl() to something that isn't a valid SVN url)
Hi, thank you for the reply. "ClientError" isn't raised if the input value is garbage, it is only raised if the input itself is semi valid. For an example "www.example.com/svn" raises ClientError, but "trashinput123" doesn't raise the exception, (see my output example above).
How do I correctly catch pySVN exceptions?