Mission-DMX / Project-Editor

This software is responsible for creating and editing project files for the DMX console
GNU General Public License v3.0
0 stars 0 forks source link

Logging Key Error #149

Closed LRahlff closed 6 months ago

LRahlff commented 6 months ago

Beim Laden der Showfile: test2.show.txt kommt es zu der Fehlermeldung: KeyError Traceback (most recent call last): File "/home/scarfface/Dokumente/COAL/Lichtpult/Mission-DMX/Project-Editor/src/view/logging_mode/logging_widget.py", line 84, in new_log_message self._levels[level].isChecked(), self._loging_level_changed)


KeyError: 'WARNING'
Traceback (most recent call last):
  File "/home/scarfface/Dokumente/COAL/Lichtpult/Mission-DMX/Project-Editor/src/view/logging_mode/logging_widget.py", line 84, in new_log_message
    self._levels[level].isChecked(), self._loging_level_changed)
    ~~~~~~~~~~~~^^^^^^^
KeyError: 'CRITICAL'
[Here](https://github.com/Mission-DMX/Project-Editor/blob/main/src/view/logging_mode/logging_widget.py#L28) is WARN defined but not WARNING and CRITICAL.
Could you take a look to that problem?
Doralitze commented 6 months ago

I think @maxkaussow already fixed that one in either his debug improvement branch or with pull request #146.