Fix problem with opening-hours: if parse error, apply this correctly

This commit is contained in:
pietervdvn 2021-10-14 14:35:04 +02:00
parent 322ce689b8
commit 460155dd8b

View file

@ -264,6 +264,7 @@ export default class SimpleMetaTagger {
return true; // Our job is done, lets unregister! return true; // Our job is done, lets unregister!
} catch (e) { } catch (e) {
console.warn("Error while parsing opening hours of ", tags.id, e); console.warn("Error while parsing opening hours of ", tags.id, e);
delete tags._isOpen
tags["_isOpen"] = "parse_error"; tags["_isOpen"] = "parse_error";
} }