Skip to content

Commit d42969d

Browse files
committed
variable error fix
1 parent 6d48ed0 commit d42969d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roboflow/core/project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,8 @@ def single_upload(
476476
is_prediction: bool = False,
477477
**kwargs,
478478
):
479+
project_url = self.id.rsplit("/")[1]
480+
print("project url", project_url)
479481
if image_path and image_id:
480482
raise Exception("You can't pass both image_id and image_path")
481483
if not (image_path or image_id):
@@ -484,7 +486,6 @@ def single_upload(
484486
annotation_labelmap = load_labelmap(annotation_labelmap)
485487
uploaded_image, uploaded_annotation = None, None
486488
if image_path:
487-
project_url = self.id.rsplit("/")[1]
488489
uploaded_image = retry(
489490
num_retry_uploads,
490491
Exception,

0 commit comments

Comments
 (0)