We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61844e4 commit f4d0e94Copy full SHA for f4d0e94
src/aind_qc_portal/view_contents/panels/media/media.py
@@ -86,7 +86,8 @@ def _init_panel_objects(self):
86
87
def _determine_media_type(self, reference: str):
88
"""Determine the media type from the reference without loading the full media object"""
89
- if not reference:
+ if not reference or not isinstance(reference, str):
90
+ print(f"Could not determine media type for reference: {reference} of type {type(reference)}")
91
self.media_type = "Unknown"
92
return
93
0 commit comments