Commit a1a5e13d authored by Alessandro CERIONI's avatar Alessandro CERIONI
Browse files

Bugfix, following SonarQube recommendations

parent df302c8e
Pipeline #4228 passed with stages
in 29 seconds
......@@ -34,10 +34,6 @@ def find_relations( tags ):
return relations
return relations
def process_posts( posts ):
output_posts = []
......
......@@ -68,19 +68,16 @@ def add_content( cfg, content_type, data ):
successful = index_cleaner(cfg, content_type, content['id'])
if not successful:
raise Exception('Something went wrong upon cleaning indices: exiting.')
exit(1)
successful = index_docs(cfg, content_type, processed_content)
if not successful:
raise Exception('Something went wrong upon indexing docs: exiting.')
exit(1)
logging.info('Reindexing...')
task_url = reindexer(cfg, content_type, content['id'])
if not successful:
raise Exception('Something went wrong. Exiting...')
exit(1)
logging.info('Setting aliases...')
successful = alias_setter(cfg, content_type)
......
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