lib/rets4r/client/parsers/response_parser.rb in jkestr-rets4r-1.1.7 vs lib/rets4r/client/parsers/response_parser.rb in jkestr-rets4r-1.1.8

- old
+ new

@@ -77,10 +77,10 @@ transaction.maxrows = (doc.get_elements('/RETS/MAXROWS').length > 0) # XXX: If it turns out we need to parse the response of errors, then this will # need to change. - if transaction.reply_code.to_i > 0 + if transaction.reply_code.to_i > 0 && transaction.reply_code.to_i == 20201 exception_type = Client::EXCEPTION_TYPES[transaction.reply_code.to_i] || RETSTransactionException raise exception_type, "#{transaction.reply_code} - #{transaction.reply_text}" end transaction.response = yield doc