minor robustness fix
This commit is contained in:
parent
ad226c90ab
commit
68418615fe
1 changed files with 1 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ class NNTP
|
||||||
puts "*getresp* #{resp}" if @debuglevel > 0
|
puts "*getresp* #{resp}" if @debuglevel > 0
|
||||||
c = resp[0]
|
c = resp[0]
|
||||||
case c
|
case c
|
||||||
|
when c == nil then raise NNTPProtocolError, resp, caller
|
||||||
when c == '4' then raise NNTPTemporaryError, resp, caller
|
when c == '4' then raise NNTPTemporaryError, resp, caller
|
||||||
when c == '5' then raise NNTPPermanentError, resp, caller
|
when c == '5' then raise NNTPPermanentError, resp, caller
|
||||||
when '123'.include?(c) then raise NNTPProtocolError, resp, caller
|
when '123'.include?(c) then raise NNTPProtocolError, resp, caller
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue