Skip to content

Commit

Permalink
processors/archive_webpages: fix pylint warnings (possibly-used-befor…
Browse files Browse the repository at this point in the history
…e-assignment)
  • Loading branch information
nodiscc committed Dec 26, 2024
1 parent 1a57644 commit aea01d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hecat/processors/archive_webpages.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def archive_webpages(step):
elif visibility == 'private':
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)
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 aea01d4

Please sign in to comment.