Commit 5dc1cc7f authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[common] fix typo around %

parent 88a0b919
Pipeline #20455 canceled with stages
in 27 minutes and 39 seconds
......@@ -398,7 +398,7 @@ def make_up_local_list(prefix, type, requirements):
try:
root = os.path.join(prefix, TYPE_NOSTORAGE[type])
except:
logger.error("Selected type is not valid: %s"%type)
logger.error("Selected type is not valid: %s" % type)
return 1
l = glob.glob(os.path.join(root, TYPE_GLOB[type]))
......@@ -553,7 +553,7 @@ def edit_local_file(prefix, editor, type, name):
try:
selected_type = TYPE_PLURAL[type]
except:
logger.error("Selected type is not valid: %s"%type)
logger.error("Selected type is not valid: %s" % type)
return 1
else:
selected_type = TYPE_NOSTORAGE[type]
......@@ -567,7 +567,7 @@ def edit_local_file(prefix, editor, type, name):
elif type in json_objects:
ext = ".json"
else:
logger.error("Selected type is not valid: %s"%type)
logger.error("Selected type is not valid: %s" % type)
root = os.path.join(prefix, selected_type)
object_path = os.path.join(root, name + ext)
......@@ -586,10 +586,10 @@ def edit_local_file(prefix, editor, type, name):
cmd = "%s %s"%(editor, object_path)
os.system(cmd)
else:
logger.error("Not a valid file: %s"%object_path)
logger.error("Not a valid file: %s" % object_path)
return 1
except:
logger.error("File does not exist: %s"%object_path)
logger.error("File does not exist: %s" % object_path)
return 1
return 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment