Skip to content

Commit 5f30f31

Browse files
committed
Add one more assert
1 parent e7cdcd7 commit 5f30f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

augmented_data/time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ def process_time(state, time_data, time_positions):
179179
print(f'WARNING: found number in {word_after_time} after the time (file_number: {file_number})')
180180
word_after_time = None
181181
if state == State.NOT_FOUND:
182-
# time_data = recreate object here
183182
time_data = TimeData()
184183
if word.startswith('num:'):
185184
state = State.FIRST_NUM
@@ -280,6 +279,7 @@ def process_time(state, time_data, time_positions):
280279
time_data.set_minute_text(minute1)
281280
time_format = TimeFormat.WITH_COLON
282281
else:
282+
assert minute1 == ''
283283
assert hour2 != ''
284284
time_data.set_hour(hour2)
285285
if minute2 != '':

0 commit comments

Comments
 (0)