Spaces:
Runtime error
Runtime error
Merge pull request #9 from CUNYTechPrep/web-vtt-without-start-time-ingestion-bugfix
Browse files
src/ctp_slack_bot/models/webvtt.py
CHANGED
@@ -79,7 +79,7 @@ class WebVTTContent(Content):
|
|
79 |
for result
|
80 |
in map(ISO_DATE_TIME_PATTERN.findall, web_vtt.header_comments)
|
81 |
if result)
|
82 |
-
except ValueError:
|
83 |
return None
|
84 |
|
85 |
@classmethod
|
|
|
79 |
for result
|
80 |
in map(ISO_DATE_TIME_PATTERN.findall, web_vtt.header_comments)
|
81 |
if result)
|
82 |
+
except (StopIteration, ValueError):
|
83 |
return None
|
84 |
|
85 |
@classmethod
|