以下のコードでValueError: invalid literal for int() with base 10のエラーが発生します。リストの中に
10進数以外の“何か”が入っているから生じるエラーというところまではわかるのですが、それが何かが
わかりません。現在引っかかっているのは、3行目です。不思議なことに4行目が通るのがますます
謎です。ご指南よろしくお願いします。

for item in open("leavetime.txt", encoding="utf-8"):
h, m = item[:-1].split(":")
print(int(h)+2)
print(int(m)+3)


"leavetime.txt"の中身
19:41
22:25
19:31
20:09
21:51
23:06
20:33
17:47
17:56
23:20
17:23