MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / create

Method create

api/integrations/github/views.py:128–133  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

126 )
127
128 def create(self, request, *args, **kwargs): # type: ignore[no-untyped-def]
129 try:
130 return super().create(request, *args, **kwargs)
131 except IntegrityError as e:
132 if re.search(r"Key \(organisation_id\)=\(\d+\) already exists", str(e)):
133 raise DuplicateGitHubIntegration
134
135 @github_api_call_error_handler(error="Failed to delete GitHub Installation.")
136 def destroy(self, request, *args, **kwargs): # type: ignore[no-untyped-def]

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected