Kevin Li commited on
Commit
f551392
·
unverified ·
2 Parent(s): 9195c31 d8ea499

Merge pull request #9 from CUNYTechPrep/web-vtt-without-start-time-ingestion-bugfix

Browse files
Files changed (1) hide show
  1. src/ctp_slack_bot/models/webvtt.py +1 -1
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