From 069bcbebc983cef5d586a13fd4bb2297a8ad4734 Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Fri, 30 Jun 2023 14:52:46 +0000 Subject: [PATCH] fix --- src/relations/deprecated_shared_db_database_provides.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/relations/deprecated_shared_db_database_provides.py b/src/relations/deprecated_shared_db_database_provides.py index 077e8f3a..8b22f7d6 100644 --- a/src/relations/deprecated_shared_db_database_provides.py +++ b/src/relations/deprecated_shared_db_database_provides.py @@ -121,7 +121,7 @@ def __init__( unit: ops.Unit, event, ) -> None: - if isinstance(event, ops.RelationBrokenEvent) and event.relation.id == self._id: + if isinstance(event, ops.RelationBrokenEvent) and event.relation.id == relation.id: raise _RelationBreaking super().__init__( relation=relation, unit=unit, peer_relation_app_databag=peer_relation_app_databag