Commit 654ef946 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

snf_django: Fix string formatting

Format arguments were applied to the last part of the string which contained
no % format operators. Concat strings before applying format.
parent 8d477a6d
......@@ -190,9 +190,9 @@ class SynnefoCommand(BaseCommand):
self.stdout.logger = logger
self.stderr.logger = logger
except OSError as err:
msg = "Could not open file %s for write: %s\n" + \
"Will not log this command's output\n" \
% (filename, err)
msg = ("Could not open file %s for write: %s\n"
"Will not log this command's output\n") % (
filename, err)
sys.stderr.write(msg)
argv = [utils.smart_locale_unicode(a) for a in argv]
......
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