AttributeError: NoneType object has no attribute "text" in exclude dialogue
Description
Vorta crashed when trying the new exclude dialogue, after adding a new and simple exclude pattern.
views/exclude_dialog.py line 266 in custom_pattern_editing_finished AttributeError: NoneType object has no attribute "text"
Reproduction
- [X] I tried to reproduce the issue.
- [X] I was able to reproduce the issue.
OS
macOS Ventura
Version of Vorta
0.9.1beta3
What did you install Vorta with?
Binary
Version of Borg
1.2.6
Logs
2023-11-30 17:53:38,412 - root - CRITICAL - Uncaught exception, file a report at https://github.com/borgbase/vorta/issues/new/choose
Traceback (most recent call last):
File "views/exclude_dialog.py", line 266, in custom_pattern_editing_finished
AttributeError: 'NoneType' object has no attribute 'text'
@diivi check this, please. ^^^ :-)
According to https://github.com/borgbase/vorta/blob/master/src/vorta/views/exclude_dialog.py#L265 the item variable should have the text method, not sure why it is None in your case. Especially when you're saying that you only simply added an exclusion pattern. I have my exams till 12th december so it'll be a little hard for me to debug this right now. If someone wants to do it I'd be happy to help (I'll get to it after 12th anyway).
This looks very similar to #1080 which is rather old. Although being reported quite regular I never managed to reproduce it and we have no idea what is triggering it.
Also couldn't reproduce this.