Author: bugman Date: Wed Oct 17 11:25:53 2012 New Revision: 17885 URL: http://svn.gna.org/viewcvs/relax?rev=17885&view=rev Log: Added some bug catching code for the observer objects. In some rare cases a registered method's key was set to None. This is now caught and a RelaxError thrown to prevent later indecipherable errors. Modified: trunk/status.py Modified: trunk/status.py URL: http://svn.gna.org/viewcvs/relax/trunk/status.py?rev=17885&r1=17884&r2=17885&view=diff ============================================================================== --- trunk/status.py (original) +++ trunk/status.py Wed Oct 17 11:25:53 2012 @@ -452,6 +452,10 @@ if key in self._keys: raise RelaxError("The observer '%s' already exists." % key) + # Blank key. + if key == None: + raise RelaxError("The observer key must be supplied.") + # Debugging. if self._status.debug: if method_name: