Fix some pylint errors
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
parent
316f9b5bc3
commit
e1632568c6
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import tuned.logs
|
|||
import functions.functions as functions
|
||||
import tuned.consts as consts
|
||||
from tuned.utils.commands import commands
|
||||
from configobj import ConfigObj
|
||||
from configobj import ConfigObj, ConfigObjError
|
||||
|
||||
log = tuned.logs.get()
|
||||
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ class commands:
|
|||
os.rename(src, dst)
|
||||
except OSError as error:
|
||||
if not no_error:
|
||||
log.error("cannot rename file '%s' to '%s': '%s'" % (f, str(error)))
|
||||
log.error("cannot rename file '%s' to '%s': '%s'" % (src, dst, str(error)))
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue