From ce93b59a9e55acd22104d6dc8ab31f2858dc8352 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Thu, 21 May 2020 13:22:46 +0200 Subject: [PATCH] minor fix --- lib/view/wttr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/view/wttr.py b/lib/view/wttr.py index a3874f3..edb1375 100644 --- a/lib/view/wttr.py +++ b/lib/view/wttr.py @@ -40,7 +40,10 @@ def get_wetter(parsed_query): location_not_found = True stdout += get_message('NOT_FOUND_MESSAGE', lang) - first_line, stdout = _wego_postprocessing(location, parsed_query, stdout) + if "\n" in stdout: + first_line, stdout = _wego_postprocessing(location, parsed_query, stdout) + else: + first_line = "" if html: