On 7/14/10 9:38 AM, Jacek Kałucki wrote:
> Użytkownik Paul McNett napisał:
>> instance exception may not have a separate value
>>
> | raise dabo.dException.NoRecordsException, "Position %s doesn't have a
> frame." % position
>
> Hi,
>
> It seems like first attribute was object instance, not a class.
> Look at this:
>
> raise Exception('foo'), 'what now?'
>
> versus this:
>
> raise Exception('foo', 'what now?')
>
So something somewhere has changed dabo.dException.NoRecordsException from a
class
into an instance?
>>> import dabo
print dabo.dException.NoRecordsException
>>> print dabo.dException.NoRecordsException
<class 'dabo.dException.NoRecordsException'>
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]