Skip to content

Commit

Permalink
fix: Enhance performance by prechecking task data uri scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
nik committed Jan 23, 2025
1 parent 7cff2a8 commit 909b642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion label_studio/io_storages/base_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def resolve_uri(self, uri, task=None):
return resolved

# string: process one url
elif isinstance(uri, str):
elif isinstance(uri, str) and self.url_scheme in uri:
try:
# extract uri first from task data
extracted_uri, _ = get_uri_via_regex(uri, prefixes=(self.url_scheme,))
Expand Down

0 comments on commit 909b642

Please sign in to comment.