Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/N0ury/icalendar into N0ur…
Browse files Browse the repository at this point in the history
…y-master
  • Loading branch information
niccokunzmann committed Apr 12, 2023
2 parents 6925845 + 651ea86 commit cd76193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/icalendar/parser.py
Expand Up @@ -337,6 +337,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 cd76193

Please sign in to comment.