summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py')
-rw-r--r--catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py b/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py
index ad8338cee4..805f0b0167 100644
--- a/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py
+++ b/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py
@@ -11,14 +11,16 @@ from sdcBePy import properties
colors = BColors()
-def process_element_list(normative_elements_list, sdc_be_proxy):
+def process_element_list(normative_elements_list, sdc_be_proxy, model=None):
attempt = 0
for normative_element in normative_elements_list:
+ if normative_element is None:
+ continue
while True:
attempt += 1
try:
process_and_create_normative_element(normative_element,
- sdc_be_proxy=sdc_be_proxy)
+ sdc_be_proxy=sdc_be_proxy, model=model)
break
except ResourceCreationError as e:
_check_and_retry(attempt, e.error_code, e.message)