Skip to content

Commit e917ce0

Browse files
committed
Allow missing possibleNumberPattern when lax
1 parent b14b4f1 commit e917ce0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/python/buildmetadatafromxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def __init__(self, xterritory, tag, template=None, general_desc=False):
339339
# A possibleNumberPattern element is optional, except for the general_desc
340340
self.o.possible_number_pattern = _dews_re(_get_unique_child_value(xtag, 'possibleNumberPattern'))
341341
if self.o.possible_number_pattern is None:
342-
if general_desc:
342+
if general_desc and not lax:
343343
raise Exception("Missing required possibleNumberPattern element for generalDesc in %s.%s" % (id, tag))
344344
if template is not None:
345345
self.o.possible_number_pattern = template.possible_number_pattern

0 commit comments

Comments
 (0)