Skip to content

Commit

Permalink
Update parser.py
Browse files Browse the repository at this point in the history
issue #348
  • Loading branch information
N0ury committed Dec 16, 2022
1 parent 16f9015 commit 651ea86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/icalendar/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ def parts(self):
if not name:
raise ValueError('Key name is required')
validate_token(name)
if not value_split:
value_split = i
if not name_split or name_split + 1 == value_split:
raise ValueError('Invalid content line')
params = Parameters.from_ical(st[name_split + 1: value_split],
Expand Down

0 comments on commit 651ea86

Please sign in to comment.