return unregister attemped on undefined

namespace handlers
This commit is contained in:
Dimitur Kirov 2006-03-15 19:43:22 +00:00
parent c8b27da04f
commit 5e19b20377
1 changed files with 2 additions and 0 deletions

View File

@ -204,6 +204,8 @@ class Dispatcher(PlugIn):
xmlns=self._owner.defaultNamespace
if not typ and not ns:
typ='default'
if self.handlers.has_key(xmlns):
return
if not self.handlers[xmlns].has_key(name):
return
if not self.handlers[xmlns][name].has_key(typ+ns):