Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

whois.cctld.uz.rb parser crashes when expiration date is dash. #161

merged 1 commit into from May 28, 2012


None yet
2 participants

sherwind commented May 11, 2012

No description provided.

@weppos weppos was assigned May 11, 2012

@weppos weppos commented on an outdated diff May 20, 2012

@@ -58,7 +58,7 @@ class WhoisCctldUz < Base
property_supported :expires_on do
if content_for_scanner =~ /^Expiration Date:(.*)\n/
- Time.parse($1)
+ Time.parse($1) rescue nil

weppos May 20, 2012


Instead of rescue nil I would suggest to use

unless $1 == '-'

In this way we are sure to let the parsing fail in case of an other different response.


sherwind commented May 27, 2012

Sure, no problem. I've already updated the patch.

@weppos weppos added a commit that referenced this pull request May 28, 2012

@weppos weppos Merge pull request #161 from sherwind/uz-no-expiration
whois.cctld.uz.rb parser crashes when expiration date is dash.

@weppos weppos merged commit 129cbd0 into weppos:master May 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment