Skip to content

Commit

Permalink
Merge pull request #475 from blacklanternsecurity/whois-error
Browse files Browse the repository at this point in the history
handle unknown whois errors gracefully
  • Loading branch information
liquidsec authored Jul 7, 2024
2 parents 14b2567 + 7094817 commit 14a3712
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions baddns/lib/whoismanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ async def dispatchWHOIS(self):
except whois.parser.PywhoisError as e:
log.debug(f"Got PywhoisError for whois request for {ext.registered_domain}")
self.whois_result = {"type": "error", "data": str(e)}
except Exception as e:
log.debug(f"Got unknown error from whois: {str(e)}")
self.whois_result = {"type": "error", "data": str(e)}

def analyzeWHOIS(self):
if self.whois_result:
Expand Down

0 comments on commit 14a3712

Please sign in to comment.