X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=osm_ro%2Futils.py;h=1e3a8ee74a8b283b7f847fa6fa7b4e5ea77f1a0a;hp=2afbc85c3a4ac15fbc12a2c39fc44037a49944a4;hb=4070e445031751ffe371b44928580f0ff6f383c9;hpb=db1b22de8331161d80ef3a65ffd41ba8ea206cb9 diff --git a/osm_ro/utils.py b/osm_ro/utils.py index 2afbc85c..1e3a8ee7 100644 --- a/osm_ro/utils.py +++ b/osm_ro/utils.py @@ -225,6 +225,8 @@ def expand_brackets(text): :param text: :return: """ + if text is None: + return (None, ) start = text.find("[") end = text.find("]") if start < 0 or end < 0: