Commit 2b3c5251 authored by Roque Porchetto's avatar Roque Porchetto

erp5_wendelin_telecom_ingestion: fixing bug, restrict download tries to invalid Data Sets.

parent 483ff587
......@@ -3,7 +3,7 @@ portal_catalog = portal.portal_catalog
try:
data_set = portal.data_set_module.get(data_set_reference)
if data_set is None:
if data_set is None or data_set.getReference().endswith("_invalid"):
return { "status_code": 0, "result": [] }
except Exception as e: # fails because unauthorized access
context.logEntry("[ERROR] At script getDataStreamList")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment