lib: Fix silent assertitons
There are a couple of assert statements in the codebase which can make jw-pkg fail without any detail whatsoever if --backtrace is not specified, fix that.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
120a6e4d34
commit
3ac3aff997
7 changed files with 19 additions and 12 deletions
|
|
@ -48,7 +48,7 @@ class Cmd(abc.ABC): # export
|
|||
if isinstance(parent, App):
|
||||
self.__app = parent
|
||||
break
|
||||
assert parent != parent.__parent
|
||||
assert parent != parent.__parent, f'Assertion failed: Parent mismatch'
|
||||
parent = parent.__parent
|
||||
return self.__app
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue