Pickle Problem

Tim Wintle tim.wintle at teamrubber.com
Wed Mar 4 00:57:40 CET 2009


On Tue, 2009-03-03 at 15:33 -0800, Fab86 wrote:
> I have been trying except SearchError: however I get the error:
> 
> Traceback (most recent call last):
>   File "C:\Downloads\MoS\yws-2.12\Python\pYsearch-3.1\timeDelay.py",
> line 19, in <module>
>     except SearchError:
> NameError: name 'SearchError' is not defined
> 
> I have searched all documents for terms along the lines of searcherror
> but am finding nothing..

Try looking at the file
C:\Downloads\MoS\yws-2.12\Python\pYsearch-3.1\timeDelay.py

and see where it imports SearchError from (or defines it)

Exceptions are just classes, so you'll have to import and reference it
like you'd reference any other class you import.

Hope that helps


Tim Wintle




More information about the Python-list mailing list