Skip to content

Commit 8481bf2

Browse files
committed
fix a silly string formatting error when the provided bmp doesn't exist
1 parent af5e2c1 commit 8481bf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

support/win32/wix.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ def get_bmp(tag, default_bmp):
299299
new_bmp = os.path.join(builder.options.appdir,
300300
bmp.replace("/", "\\"))
301301
if not os.path.exists(new_bmp):
302-
print >>sys.stderr, "Warning: specified %s '%s'" + \
303-
"wasn't found at %s, reverting to default" % \
304-
(tag, bmp, new_bmp)
302+
error = "Warning: specified %s '%s'" + \
303+
"wasn't found at %s, reverting to default"
304+
print >>sys.stderr, error % (tag, bmp, new_bmp)
305305
return default_bmp
306306
else:
307307
return new_bmp

0 commit comments

Comments
 (0)