exe/stepmod-extract-terms in stepmod-utils-0.1.6 vs exe/stepmod-extract-terms in stepmod-utils-0.1.7

- old
+ new

@@ -55,9 +55,15 @@ rescue log "WARNING: Unknown file #{file_path}, skipped" next end + # TODO: we may want a command line option to override this in the future + unless %w(IS DIS TS).include? bibdata.doctype + log "WARNING: skipping #{bibdata.docid} as it is not IS, DIS or TS" + next + end + if bibdata.part.to_s.empty? log "FATAL: missing `part` attribute: #{file_path}" end # read definitions