From bac8647650aa661e9dd403371c9bf5e1c16facc1 Mon Sep 17 00:00:00 2001 From: Mikkel Pedersen Date: Mon, 10 Jun 2024 17:20:36 +0200 Subject: [PATCH] fix(sky): Ignore errors when reading file --- honeybee_radiance/cli/sky.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/honeybee_radiance/cli/sky.py b/honeybee_radiance/cli/sky.py index 98bc2ce0e..785f8579f 100644 --- a/honeybee_radiance/cli/sky.py +++ b/honeybee_radiance/cli/sky.py @@ -494,7 +494,7 @@ def abnt_nbr_15575(wea, north, folder, log_file): also be an .epw. The file is only used to extract the location. """ try: - with open(wea) as inf: + with open(wea, errors='ignore') as inf: first_word = inf.read(5) is_wea = True if first_word == 'place' else False if not is_wea: