Fix some pylint

This commit is contained in:
Cole Robinson 2013-12-18 16:34:10 -05:00
parent febd8bf4e5
commit 5c1ed03b89
3 changed files with 5 additions and 4 deletions

View File

@ -35,6 +35,8 @@ def check_packagekit(parent, errbox, packages):
Returns None when we determine nothing useful.
Returns (success, did we just install libvirt) otherwise.
"""
ignore = errbox
if not packages:
logging.debug("No PackageKit packages to search for.")
return
@ -55,8 +57,7 @@ def check_packagekit(parent, errbox, packages):
except Exception, e:
# PackageKit frontend should report an error for us, so just log
# the actual error
logging.debug("Error talking to PackageKit: %s" % str(e),
exc_info=True)
logging.debug("Error talking to PackageKit: %s", str(e), exc_info=True)
return
return True