<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Nice finding, unfortunately you are right:</p>
<p><br>
</p>
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; overflow-wrap: break-word; white-space: pre-wrap;">From bfe9ae4d25b914d5c2622042303ba09fa8060e80 Mon Sep 17 00:00:00 2001
From: Dimitrios Glentadakis <a class="moz-txt-link-rfc2396E" href="mailto:dglent@free.fr"><dglent@free.fr></a>
Date: Mon, 6 May 2019 19:34:58 +0200
Subject: [PATCH] Fix crash when 6 days forceast is not available
---
meteo_qt/meteo_qt.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meteo_qt/meteo_qt.py b/meteo_qt/meteo_qt.py
index f6fca87..9774616 100644
--- a/meteo_qt/meteo_qt.py
+++ b/meteo_qt/meteo_qt.py
@@ -1861,6 +1861,10 @@ def run(self):
'Fetching url for 6 days :' + self.forecast6_url
+ self.id_ + self.suffix + '&cnt=7'
)
+ reqforecast6 = (
+ self.forecast6_url + self.id_
+ + self.suffix + '&cnt=7'
+ )
try:
reqforecast6 = urllib.request.urlopen(
self.forecast6_url + self.id_</pre>
<p><br>
</p>
<p>Applying this patch to 1.0.0 fixes the problem for me - next
question is:</p>
<p>How to get this to stable, testing and sid have already 1.3.<br>
</p>
</body>
</html>