From abb5cdf2f1de33ba1a42818a3a9be6e068ec231c Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Tue, 18 Jul 2023 11:42:36 +0200 Subject: [PATCH] fix circular import --- src/sentry/models/debugfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sentry/models/debugfile.py b/src/sentry/models/debugfile.py index 7de64fc1c41ae..a77cd70159a6c 100644 --- a/src/sentry/models/debugfile.py +++ b/src/sentry/models/debugfile.py @@ -43,7 +43,6 @@ region_silo_only_model, sane_repr, ) -from sentry.lang.native.sources import record_last_upload from sentry.models.files.file import File from sentry.models.files.utils import clear_cached_files from sentry.reprocessing import bump_reprocessing_revision, resolve_processing_issue @@ -599,6 +598,8 @@ def create_files_from_dif_zip( """Creates all missing debug files from the given zip file. This returns a list of all files created. """ + from sentry.lang.native.sources import record_last_upload + scratchpad = tempfile.mkdtemp() try: safe_extract_zip(fileobj, scratchpad, strip_toplevel=False)