Unwrap dict when calling

This commit is contained in:
Mihail Shinder 2021-11-19 14:24:26 +02:00
parent da0c302ea4
commit dd69c7fe7a

View File

@ -279,7 +279,7 @@ class CommandViewer(Viewer):
if not isinstance(command, str):
raise TypeError(f"'command' must be 'str' not '{type(command)}'")
values = {"file": quote(file), **options}
return command.format(values)
return command.format(**values)
if __name__ == "__main__":