Fix lint
This commit is contained in:
parent
10f3c47ae2
commit
10eb849ae7
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user