WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 3727ba0

Browse files
fix: cursor
1 parent ca37f9c commit 3727ba0

File tree

1 file changed

+11
-0
lines changed
  • libs/shared/shared/django_apps/upload_breadcrumbs

1 file changed

+11
-0
lines changed

libs/shared/shared/django_apps/upload_breadcrumbs/admin.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,17 @@ def _resend_upload(
691691
"resend_timestamp": timezone.now().isoformat(),
692692
}
693693

694+
# Check if upload_ids is None
695+
if breadcrumb.upload_ids is None:
696+
log.error(
697+
"Cannot resend upload - breadcrumb has no upload IDs",
698+
extra={"breadcrumb_id": breadcrumb.id},
699+
)
700+
return (
701+
False,
702+
"This breadcrumb has no associated upload IDs. It may be a resend breadcrumb that hasn't been processed yet.",
703+
)
704+
694705
log.info(
695706
f"Collecting upload data for {len(breadcrumb.upload_ids)} uploads",
696707
extra={"upload_ids": breadcrumb.upload_ids},

0 commit comments

Comments
 (0)