Newbie question 2

Ian McMeans imcmeans at telus.net
Sun Nov 9 10:13:03 CET 2003


That exception probably exists in some namespace, doesn't it?
Try bsddb.db.DBNotFoundError

[snip]
> > Traceback (most recent call last):
> >   File "C:\Python23\phone.py", line 118, in -toplevel-
> >     dele(dn,dp)
> >   File "C:\Python23\phone.py", line 70, in dele
> >     except (DBNotFoundError, NameError):
> > NameError: global name 'DBNotFoundError' is not defined
> >
> > How can it give me an error and then not allow me to enter that error in
>  my
> > Except()?
> >
> > Thanks for your help!
> >
> >
> >




More information about the Python-list mailing list