Menu

#1 Where to catch the InvalidPassword exception?

open
nobody
None
5
2007-12-08
2007-12-08
No

Hi,
if I run the same code which is in the example on the website, against pyfics SVN, and fill in a wrong password, I get the InvalidPassword exception raised. So far so good. My problem is: where should I catch it?

I tried like:

try:
reactor.run()
except InvalidPassword:
do_something()

but it didn't work. Can you help? Thanks!

Discussion


Log in to post a comment.

MongoDB Logo MongoDB