We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99a570d commit 2f12231Copy full SHA for 2f12231
src/webexpythonsdk/models/cards/utils.py
@@ -226,8 +226,8 @@ def validate_uri(
226
if not parsed_uri.scheme:
227
raise URIException("Invalid URI: Missing scheme")
228
229
- # Check if the URI has a heir-part location
230
- if not parsed_uri.netloc:
+ # Check if the URI has a heir-part location if scheme isn't "data"
+ if parsed_uri.scheme != "data" and not parsed_uri.netloc:
231
raise URIException("Invalid URI: Missing heir part location")
232
233
# Return if every check is passed
0 commit comments