diff --git a/contrib/sync-places.py b/contrib/sync-places.py index 3bad6b365..d3d74f86d 100755 --- a/contrib/sync-places.py +++ b/contrib/sync-places.py @@ -109,6 +109,11 @@ async def do_sync(session, args): changed = True tags = config["places"][name].get("tags", {}).copy() + for k, v in tags.items(): + if not isinstance(k, str) or not isinstance(v, str): + del(tags[k]) + tags[str(k)] = str(v) + if place_tags != tags: print( "Setting tags for place %s to %s"