Skip to content

Commit 147bf74

Browse files
committed
Don't warn that a field is missing if the user requested its omission with -x.
1 parent fe4c00b commit 147bf74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/prebib

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class PreBib:
168168
warn_missing_entry = []
169169

170170
warn_missing = [ k for
171-
k in warn_missing_entry if k not in data.keys() ]
171+
k in warn_missing_entry if k not in data.keys()
172+
and k not in self.extra_excludes]
172173
for i in warn_missing:
173174
self.msg("Entry '%s' is missing a '%s' field" % (key, i))
174175

0 commit comments

Comments
 (0)