Re: KirbyBase : replacing string exceptions

2009-11-23 Thread Brendan
On Nov 23, 12:21 pm, Steve Howell wrote: > On Nov 23, 7:22 am, Brendan wrote: > > > In KirbyBase there is a method that uses string exceptions for > > control, even though it has a defined exception. Is there any reason > > the string exceptions below could not be replaced? > > i.e. in code below

Re: KirbyBase : replacing string exceptions

2009-11-23 Thread Steve Howell
On Nov 23, 7:22 am, Brendan wrote: > In KirbyBase there is a method that uses string exceptions for > control, even though it has a defined exception. Is there any reason > the string exceptions below could not be replaced? > i.e. in code below replace: > raise "No Match" > with: > raise KBError()

KirbyBase : replacing string exceptions

2009-11-23 Thread Brendan
In KirbyBase there is a method that uses string exceptions for control, even though it has a defined exception. Is there any reason the string exceptions below could not be replaced? i.e. in code below replace: raise "No Match" with: raise KBError() and except 'No Match': with: except KBError: I h