from django.apps import AppConfig
import posthog


class ApiConfig(AppConfig):
    name = 'api'

    def ready(self):
        from appconf.manager import SettingManager
        posthog_key = SettingManager.get('posthog_key')
        if posthog_key and posthog_key != 'posthog_key':
            posthog.api_key = posthog_key

@@ -162,16 +162,34 @@
 Manager%0A
+%0A        try:%0A    
         
@@ -244,16 +244,20 @@
         
+  
+  
 if posth
@@ -305,24 +305,28 @@
             
+    
 posthog.api_
@@ -343,8 +343,62 @@
 hog_key%0A
+        except:%0A            # ignore%0A            pass%0A

fix units