Open JBlocklove opened 4 months ago
Thank you for reporting this bug.
This can be worked around by setting default_event_alarm
and default_dayevent_alarm
to any values in the [default]
section like this (but this should obviously be fixed):
[default]
default_event_alarm = 5m
default_dayevent_alarm = 2d
Your suggestion looks fine, do you want to send a PR?
I'm hitting this issue with the workaround, but the source code edit fixes it.
Great! I'll submit a PR then
@JBlocklove hey, just wanted to follow up here. I don't mind making the PR if that's easier, but wouldn't want to steal credit for your fix if you were planning on making one.
Sorry, life got hectic and this kept slipping off my todo list. Thanks for the consideration; feel free to make the PR yourself since it'll still probably be a bit before I can get around to following the PR guidelines for this project
Describe the bug When adding an alarm in ikhal to an existing or new event the program crashes.
If applicable: Stack Trace
To Reproduce
Expected behavior The dialogue to add alarms should appear and the user should be able to edit it as needed.
OS, version, khal version and how you installed it:
khal, version 0.11.3.dev182+g0c9108e
pipx
[locale] timeformat = %H:%M dateformat = %Y-%m-%d longdateformat = %Y-%m-%d datetimeformat = %Y-%m-%d %H:%M longdatetimeformat = %Y-%m-%d %H:%M firstweekday = 6
[default] default_calendar = Test highlight_event_days = true enable_mouse = false
[highlight_days] color = ''
[view] frame = width
I'd be happy to just make a PR for this, but I'm not a very good python dev so I'm not sure if this is necessarily the "right" way to fix this or if it would be better to pass
None
explicitly to the function when it's being called.