Commit 95a8e78f authored by EKbfh's avatar EKbfh 🐼
Browse files

Merge branch 'fix-avs-etl-key-error' into 'master'

Catch trace on etl loader when delete lost mapping.

See merge request noc/noc!4640
parents cfd754a5 3e3c7948
......@@ -448,6 +448,9 @@ class BaseLoader(object):
except ValueError as e: # Referred Error
self.logger.error("%s", str(e))
self.referred_errors += [(r_id, msg)]
except KeyError as e:
# Undefined mappings
self.logger.error("%s", str(e))
except self.model.DoesNotExist:
pass # Already deleted
self.pending_deletes = []
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment