Skip to content
Snippets Groups Projects
Commit 8371f8b3 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: make sure domain var is set

parent 4ce14373
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!177Refactor email
Pipeline #52915 failed
...@@ -895,8 +895,8 @@ the CaosDB Crawler successfully crawled the data and ...@@ -895,8 +895,8 @@ the CaosDB Crawler successfully crawled the data and
""" """
if get_config_setting("create_crawler_status_records"):
domain = get_config_setting("public_host_url") domain = get_config_setting("public_host_url")
if get_config_setting("create_crawler_status_records"):
text += ("You can checkout the CrawlerRun Record for more information:\n" text += ("You can checkout the CrawlerRun Record for more information:\n"
f"{domain}/Entity/?P=0L10&query=find%20crawlerrun%20with%20run_id=%27{run_id}%27\n\n") f"{domain}/Entity/?P=0L10&query=find%20crawlerrun%20with%20run_id=%27{run_id}%27\n\n")
text += (f"You can download the logfile here:\n{domain}/Shared/" + logfile) text += (f"You can download the logfile here:\n{domain}/Shared/" + logfile)
...@@ -1082,6 +1082,8 @@ def crawler_main(crawled_directory_path: str, ...@@ -1082,6 +1082,8 @@ def crawler_main(crawled_directory_path: str,
ident = CaosDBIdentifiableAdapter() ident = CaosDBIdentifiableAdapter()
ident.load_from_yaml_definition(identifiables_definition_file) ident.load_from_yaml_definition(identifiables_definition_file)
crawler.identifiableAdapter = ident crawler.identifiableAdapter = ident
else:
raise ValueError("An identifiable file is needed.")
remove_prefix = _treat_deprecated_prefix(prefix, remove_prefix) remove_prefix = _treat_deprecated_prefix(prefix, remove_prefix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment