enforce E501 in pmb/flasher (MR 2058)

This commit is contained in:
Caio Fontes 2021-05-19 15:55:40 -03:00 committed by Oliver Smith
parent aaece05bb7
commit cfa5bc2cf7
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 37 additions and 22 deletions

View file

@ -49,10 +49,11 @@ def run(args, action, flavor=None):
for i in range(len(command)):
if key in command[i]:
if value is None:
raise RuntimeError("Variable " + key + " found in"
" action " + action + " for method " + method + ","
" but the value for this variable is None! Is that"
" missing in your deviceinfo?")
raise RuntimeError(f"Variable {key} found in action"
f" {action} for method {method},"
" but the value for this variable"
" is None! Is that missing in your"
" deviceinfo?")
check_partition_blacklist(args, key, value)
command[i] = command[i].replace(key, value)