We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 99a570d + 2f12231 commit 8d26a00Copy full SHA for 8d26a00
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