|
@@ -11,7 +11,6 @@ from django.utils import timezone
|
|
|
from django.utils.decorators import method_decorator
|
|
|
from django.views.decorators.csrf import csrf_exempt
|
|
|
from django.views.generic.base import View
|
|
|
-from simplejson import JSONDecodeError
|
|
|
from sentry.models import Commit, CommitAuthor, Organization, Repository
|
|
|
from sentry.plugins.providers import IntegrationRepositoryProvider
|
|
|
from sentry.utils import json
|
|
@@ -139,7 +138,7 @@ class BitbucketServerWebhookEndpoint(View):
|
|
|
|
|
|
try:
|
|
|
event = json.loads(body.decode("utf-8"))
|
|
|
- except JSONDecodeError:
|
|
|
+ except json.JSONDecodeError:
|
|
|
logger.error(
|
|
|
PROVIDER_NAME + ".webhook.invalid-json",
|
|
|
extra={"organization_id": organization.id, "integration_id": integration_id},
|