On Mar 20, 2011, at 9:30 AM, John Fabiani wrote:

> Still testing 2.7 on linux openSUSE 11.4, python 2.7, wxPython 2.8.11, Dabo 
> latest.
> 
> Closing the dShell produces the following error.
> TypeError: 'NoneType' object is not callable
> Line 361 in dEditor.py
> 
> Maybe a simple try wouldn't hurt?
> def __del__(self):
>               try:
>                       self._unRegisterFunc(self)
>                       super(dEditor, self).__del__()
>               except:
>                       pass

        Bare excepts are to be avoided at all costs.

        Better: wrap the method with the deadCheck decorator. I've posted that 
change; let me know how it works.



-- Ed Leafe



_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/d73980d9-829a-40fb-83e6-ae75ac0f7...@leafe.com

Reply via email to