From 4009d11054e542c2183169e9c320c85f7d662334 Mon Sep 17 00:00:00 2001 From: lukasgoetzweiss <54216345+lukasgoetzweiss@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:30:40 -0700 Subject: [PATCH] Fix typo in missing sync tag error handling --- eppo_metrics_sync/eppo_metrics_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eppo_metrics_sync/eppo_metrics_sync.py b/eppo_metrics_sync/eppo_metrics_sync.py index 9fac6e4..265be57 100644 --- a/eppo_metrics_sync/eppo_metrics_sync.py +++ b/eppo_metrics_sync/eppo_metrics_sync.py @@ -138,7 +138,7 @@ def sync(self): raise Exception('EPPO_API_KEY not set in environment variables. Please set and try again') sync_tag = self._determine_sync_tag() - if not api_key: + if not sync_tag: raise Exception('EPPO_SYNC_TAG not set in environment variables. Please set and try again') headers = {"X-Eppo-Token": api_key}