-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding an alarm in ikhal causes a crash #1338
Comments
Thank you for reporting this bug. This can be worked around by setting
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
Additional context
I was able to fix this by setting a default value of
None
fortimedelta
in theadd_alarm
function, which seems to concur with its initial check fortimedelta
beingNone
, as follows (from:khal/ui/widgets.py: 563
)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.The text was updated successfully, but these errors were encountered: