We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd75c3 commit 0e2304fCopy full SHA for 0e2304f
lib/installer.py
@@ -32,8 +32,8 @@ def top_setattr(self, attrs):
32
# makes a mutable deep copy of all `contents`
33
@staticmethod
34
def _normalize_structure(defn):
35
- assert isinstance(defn, dict)
36
- assert 'TAG' in defn
+ assert isinstance(defn, dict), f"{defn!r} is not a dict"
+ assert 'TAG' in defn, f"{defn} has no TAG"
37
defn = dict(defn)
38
if 'CONTENTS' not in defn:
39
defn['CONTENTS'] = []
0 commit comments