Skip to content

Commit 0e2304f

Browse files
committed
install: better message for invalid AnswerFile decls
Signed-off-by: Yann Dirson <[email protected]>
1 parent ccd75c3 commit 0e2304f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def top_setattr(self, attrs):
3232
# makes a mutable deep copy of all `contents`
3333
@staticmethod
3434
def _normalize_structure(defn):
35-
assert isinstance(defn, dict)
36-
assert 'TAG' in defn
35+
assert isinstance(defn, dict), f"{defn!r} is not a dict"
36+
assert 'TAG' in defn, f"{defn} has no TAG"
3737
defn = dict(defn)
3838
if 'CONTENTS' not in defn:
3939
defn['CONTENTS'] = []

0 commit comments

Comments
 (0)