User Activity

  • Posted a comment on ticket #5 on pysvn

    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.

  • Posted a comment on ticket #5 on pysvn

    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"):...

  • Modified a comment on ticket #5 on pysvn

    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...

  • Modified a comment on ticket #5 on pysvn

    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)

  • Posted a comment on ticket #5 on pysvn

    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).

  • Created ticket #5 on pysvn

    How do I correctly catch pySVN exceptions?

View All

Personal Data

Username:
norrig
Joined:
2020-08-24 11:03:29

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB