(self, request, *args, **kwargs)
| 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] |