X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_ro%2Futils.py;h=1e3a8ee74a8b283b7f847fa6fa7b4e5ea77f1a0a;hb=0ea9b0f0cbd4c5567289c4c80c73de94901d7047;hp=592abc128588b5d776c4f8d3cc678f9dbdda6e17;hpb=0446cd5df24c38f95cea13b995c553e9b2403f21;p=osm%2FRO.git diff --git a/osm_ro/utils.py b/osm_ro/utils.py index 592abc12..1e3a8ee7 100644 --- a/osm_ro/utils.py +++ b/osm_ro/utils.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- ## -# Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U. +# Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U. # This file is part of openmano # All Rights Reserved. # @@ -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: