lib/opener/stanza/tokenizer_pos.rb in opener-chained-daemon-3.3.0 vs lib/opener/stanza/tokenizer_pos.rb in opener-chained-daemon-3.3.1

- old
+ new

@@ -36,10 +36,10 @@ def run input, params raise 'missing Stanza server' if ENV['STANZA_SERVER'].blank? kaf = KAF::Document.from_xml input - prod = params[:cache_keys][:environment] != 'staging' + prod = params[:cache_keys][:environment] == 'production' if prod and !LANGUAGES_CACHE.get.include?(kaf.language) raise Core::UnsupportedLanguageError.new kaf.language end input = kaf.raw