This commit is contained in:
Florian Bruhin 2014-09-23 19:03:36 +02:00
parent 10f3c47ae2
commit 10eb849ae7
2 changed files with 3 additions and 3 deletions

View File

@ -747,7 +747,7 @@ class Application(QApplication):
# event loop, so we can shut down immediately.
self._shutdown(status)
def _shutdown(self, status): # noqa
def _shutdown(self, status): # noqa, pylint: disable=too-many-branches
"""Second stage of shutdown."""
log.destroy.debug("Stage 2 of shutting down...")
# Remove eventfilter

View File

@ -401,8 +401,8 @@ class ObjectRegistry(collections.UserDict):
Prevents duplicated registrations.
"""
if name in self.data:
raise KeyError("Object '{}' is already registered in scope "
"'{}' ({})!".format(name, scope, self.data[name]))
raise KeyError("Object '{}' is already registered ({})!".format(
name, repr(self.data[name])))
super().__setitem__(name, obj)
def dump_objects(self):