6561: v3.4.3 NarWeb creation fails for German, Swedish

svn: r21764
This commit is contained in:
Paul Franklin 2013-03-27 17:00:15 +00:00
parent fa265e2a83
commit 023ccd5086

View File

@ -486,6 +486,7 @@ class CommandLineReport(object):
print (_("Use '%(notranslate)s' to see valid values.") %
{'notranslate' : "show=off"}).encode(sys.getfilesystemencoding())
self.paper = paper_sizes[0] # make sure one exists
for paper in paper_sizes:
if paper.get_name() == self.options_dict['papers']:
self.paper = paper