Skip to content

Commit

Permalink
processors/archive_webpages: exit with error when visibility has an i…
Browse files Browse the repository at this point in the history
…nvalid value
  • Loading branch information
nodiscc committed Dec 26, 2024
1 parent aea01d4 commit 6e378e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hecat/processors/archive_webpages.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def archive_webpages(step):
dirs_list = next(os.walk(step['module_options']['output_directory'] + '/private'))
ids_in_data = [value['id'] for value in items if value['private'] == True]
else:
logging.error('incorrect value for visibility: %s', visibility)
logging.error('invalid value for visibility: %s', visibility)
sys.exit(1)
for directory in dirs_list[1]:
if not any(id == int(directory) for id in ids_in_data):
if step['module_options']['clean_removed']:
Expand Down

0 comments on commit 6e378e4

Please sign in to comment.