try-except around all_country-plotting

This commit is contained in:
fordprefect committed 2020-10-21 14:05:19 +02:00
1 parent 0276a9c6c4
commit 45cb014a5c
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -23,6 +23,7 @@ def plot(data, countries, pop):
figsize = (10,5)
for loc in data:
try:
if loc == "International":
continue
name = basename+loc
@@ -111,3 +112,5 @@ def plot(data, countries, pop):
pp.savefig("ac_"+name+".png")
pp.close(fig)
except Exception as e:
print(f"=====> plotting failed for {loc}, skipping plot. Error: {e}")
+1 -1
View File
@@ -12,7 +12,7 @@
<h4>Idee</h4>
Automatisierte Übersichtsplots für die ganze Welt, analog zu <a href=https://covh.github.io/cov19de/>dieser Seite</a>.
Automatisierte Übersichtsplots für die ganze Welt, analog zu <a href=https://covh.github.io/cov19de/pages/Deutschland.html>dieser Seite</a>.
<br><br>
Achtung: Die hier dargestellten Daten sind zwischen den Ländern kaum vergleichbar, da überall unterschiedliche Kriterien für Testung, Zählung und Meldung von Daten existieren.
Ohne genaue Kenntnis der Situationen in den einzelnen Ländern ist ein aussagekräftiger Vergleich <b>nicht möglich</b>!