Skip to content
Snippets Groups Projects
Commit a1a5e13d authored by Alessandro Cerioni's avatar Alessandro Cerioni
Browse files

Bugfix, following SonarQube recommendations

parent df302c8e
No related branches found
No related tags found
1 merge request!2Development
Pipeline #4228 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment