List Info

Thread: pysvn.ClientError: no Exceptions with example from docs




pysvn.ClientError: no Exceptions with example from docs
user name
2006-11-09 16:42:35
Should probably mention, this is with:
pysvn 1.5.0
Subversion 1.4.0
Python 2.5
on WindowsXP

Achim
> Hi,
>
> first let me say I'm new to programming and svn, so if
this is a 
> stupid mistake of me, please excuse. So I tried  to
work with 
> pysvn.ClientError, using the example form the docs:
>
> import pysvn
>
> client = pysvn.Client()
> client.exception_style = 1
> try:
>
>    client.update( '' )
> except pysvn.ClientError, e:
>    # print the whole message
>    print e.arg[0]
>    # or process the error list
>    for message, code in e.arg[1]:
>        print 'Code:',code,'Message:',message
>
> But when I run this, there is no exception  triggered.
The same 
> happens when I try to lock a file which is already
locked. No 
> exceptions are triggered.
>
> What am I missing?
>
> Thanks a lot in advance
> Achim
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: users-unsubscribepysvn.tigris.org
> For additional commands, e-mail: users-helppysvn.tigris.org
>
>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribepysvn.tigris.org
For additional commands, e-mail: users-helppysvn.tigris.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )