changed string formatting according to development guidelines

This commit is contained in:
tomaae 2020-03-16 19:02:54 +01:00
parent 7af3ef0bb3
commit 8ec4f9ade5
7 changed files with 31 additions and 39 deletions

View file

@ -256,7 +256,7 @@ class MikrotikAPI:
self.lock.release()
if not entry_found:
error = 'Parameter "{}" with value "{}" not found'.format(param, value)
error = f'Parameter "{param}" with value "{value}" not found'
raise ApiEntryNotFound(error)
return True
@ -321,7 +321,7 @@ class MikrotikAPI:
self.lock.release()
if not entry_found:
error = 'Script "{}" not found'.format(name)
error = f'Script "{name}" not found'
raise ApiEntryNotFound(error)
return True