Skip to content

Commit 6b77651

Browse files
committed
ruff: final fix in except re-raise
1 parent 676c8d9 commit 6b77651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nitrokeyapp/ui_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ def createWidget(
5959
# @fixme? in fact QWidget is callable
6060
widget = self.customWidgets[class_name](parent) # type: ignore
6161

62-
except (TypeError, KeyError):
62+
except (TypeError, KeyError) as e:
6363
raise Exception(
6464
"No custom widget "
6565
+ class_name
6666
+ " found in customWidgets param of UiLoader __init__."
67-
)
67+
) from e
6868

6969
if self.baseinstance:
7070
# set an attribute for the new child widget on the base

0 commit comments

Comments
 (0)