Christoph Zwerschke wrote:
> Ian Bicking wrote:
>> What was the actual exception object involved? The error you saw came
>> from the error handler, so there's some other exception being raised,
>> right?
>
> It was only the SkipTemplate exception. This exception was caught in
> substitute_content(), where the _add_except() tried to add something to
> args[0] which did not exist (for the bare SkipTemplate exception).
> So instead of SkipTemplate being raised again, the IndexError is raised.
>
> Maybe you can add another parameter "info" to skip_template, and then
> you raise SkipTemplate(info). When catching the SkipTemplate exception,
> you can then print the info as a reason for skipping the file as you
> already do with should_skip_file().
Well, in trunk it'll work fine irregardless. To be compatible with the
release, if you raise SkipTemplate('skip file'), it should work now. It
must be something about the nesting that causes the problem, where it
isn't always there.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users