Skip to content

Commit 48daf63

Browse files
committed
Ensure pkginfo dict exists
1 parent 85aa25f commit 48daf63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pre_commit_hooks/check_munki_pkgsinfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def main(argv=None):
104104

105105
retval = 0
106106
for filename in args.filenames:
107+
pkginfo = {}
107108
try:
108109
with open(filename, "rb") as openfile:
109110
pkginfo = plistlib.load(openfile)

0 commit comments

Comments
 (0)