This repository was archived by the owner on Feb 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ def testItem(d: str, printgetRawWhoisResult: bool = False):
186186
187187 if w is None :
188188 print ("None" )
189+ print ("\n " , whois .get_last_raw_whois_data ())
189190 return
190191
191192 # the 3 date time items can be None if not present or a datetime string
@@ -204,6 +205,7 @@ def testItem(d: str, printgetRawWhoisResult: bool = False):
204205 else :
205206 print ((ss + "%s" ) % (k , xType (v ), v ))
206207
208+ print ("\n " , whois .get_last_raw_whois_data ())
207209
208210def errorItem (d , e , what = "Generic" ):
209211 if what not in Failures :
Original file line number Diff line number Diff line change @@ -187,7 +187,6 @@ def doUnsupportedTldAnyway(
187187 "Try" : [],
188188}
189189
190-
191190def get_last_raw_whois_data ():
192191 global LastWhois
193192 return LastWhois
@@ -226,6 +225,7 @@ def query(
226225 if the tld is unsupported, just try it anyway but return only the raw text.
227226 """
228227 global LastWhois
228+ LastWhois ["Try" ] = [] # init on start of query
229229
230230 assert isinstance (domain , str ), Exception ("`domain` - must be <str>" )
231231 return_raw_text_for_unsupported_tld = bool (return_raw_text_for_unsupported_tld )
You can’t perform that action at this time.
0 commit comments