almostearthling / when-command

When is an automation tool that aims at being flexible and cross platform
http://almostearthling.github.io/when-command/
BSD 3-Clause "New" or "Revised" License
68 stars 2 forks source link

Avoid exception when new item editor dialog is suppressed #110

Closed almostearthling closed 2 months ago

almostearthling commented 2 months ago

When there are not the conditions to open a specific new item editor (eg. when there are no event-based conditions and the user tries to create a new event), the editor dialog box is suppressed: in this case an exception is thrown showing that the new_item variable is not assigned. The exception text appears at the console: it just should be avoided.