vorta icon indicating copy to clipboard operation
vorta copied to clipboard

AttributeError: NoneType object has no attribute "text" in exclude dialogue

Open ThomasWaldmann opened this issue 2 years ago • 4 comments

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'

ThomasWaldmann avatar Nov 30 '23 17:11 ThomasWaldmann

@diivi check this, please. ^^^ :-)

ThomasWaldmann avatar Nov 30 '23 17:11 ThomasWaldmann

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).

diivi avatar Nov 30 '23 19:11 diivi

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.

real-yfprojects avatar Dec 08 '23 16:12 real-yfprojects

Also couldn't reproduce this.

m3nu avatar Dec 11 '23 16:12 m3nu