Skip to content

Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.

fix(sns): ruff cleanup

Nahuel9905aa84b826f7f
diff --git a/ministack/services/sns.py b/ministack/services/sns.py
index b3db24ed..e2382d07 100644
--- a/ministack/services/sns.py
+++ b/ministack/services/sns.py
@@ -138,8 +138,6 @@ def _get_topic(topic_arn: str, action: str | None = None):
arn = _normalize_arn(topic_arn)
topic = _topic_by_arn_any_scope(arn)
if topic is None:
- if not_found_error is not None:
- return None, not_found_error
return None, _error("NotFound", f"Topic does not exist: {arn}", 404)
if action is not None:
denied = _enforce_topic_policy(topic, action)