Also fix formatting of the error message.
if backport_ext=="none":
backport_ext = None
else:
- backport_ext = extensions[backport_ext]
+ bpe_name = backport_ext
+ backport_ext = extensions.get(backport_ext)
if backport_ext not in backport_ext_candidates:
- print "Warning: explicitly specified backport extension %s does not look like a backport extension"
+ print "Warning: explicitly specified backport extension %s does not look like a backport extension"%bpe_name
elif backport_ext_candidates:
if len(backport_ext_candidates)>1:
print "Warning: multiple backport extension candidates: %s"%(" ".join(e.name for e in backport_ext_candidates))