Skip to content

Commit 7ee3002

Browse files
committed
update generic error handler
1 parent d1bc913 commit 7ee3002

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

posthog/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ def _load_feature_flags(self):
240240
'To use feature flags, please set a personal_api_key ' \
241241
'More information: https://posthog.com/docs/api/overview'
242242
)
243+
else:
244+
raise APIError(
245+
status=e.status,
246+
message=e.message
247+
)
243248
except Exception as e:
244249
self.log.warning('[FEATURE FLAGS] Fetching feature flags failed with following error. We will retry in %s seconds.' % self.poll_interval)
245250
self.log.warning(e)

0 commit comments

Comments
 (0)