]> git.ipfire.org Git - ipfire.org.git/commitdiff
fireinfo: Fix rendering page when country code is unknown
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Oct 2020 09:44:45 +0000 (09:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Oct 2020 09:44:45 +0000 (09:44 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/fireinfo/index.html

index 608a57bf8dcd4407e6ed7fd0e16a66a3fb6701b6..e07cb07d9dc0a7019fd4e0ed99d1e08f509b9f2f 100644 (file)
@@ -76,7 +76,7 @@
                        <div class="row">
                                <div class="col-12">
                                        <small>
-                                               {{ _("IPFire is also running in these countries: %s") % locale.list(list((format_country_name(c) for c, p in locations if p < 0.01))) }}
+                                               {{ _("IPFire is also running in these countries: %s") % locale.list([(format_country_name(c) or c)  for c, p in locations if p < 0.01]) }}
                                        </small>
                                </div>
                        </div>