Skip to content

Commit

Permalink
Fix updateing deleted site in contentdb
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Jan 4, 2020
1 parent 3944297 commit 2b5e57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/OptionalManager/ContentDbPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def loadFilesOptional(self):
site_ids_reverse = {val: key for key, val in self.site_ids.items()}
for site_id, stats in site_sizes.items():
site_address = site_ids_reverse.get(site_id)
if not site_address:
if not site_address or site_address not in self.sites:
self.log.error("Not found site_id: %s" % site_id)
continue
site = self.sites[site_address]
Expand Down

0 comments on commit 2b5e57e

Please sign in to comment.