Skip to content

Commit

Permalink
Don't update_tld_names if there's no metasmoke_host defined -autopull
Browse files Browse the repository at this point in the history
This is a hack. We really should resolve why this fails when MS
is having problems (at least when it's having certificate issues).
  • Loading branch information
makyen committed Apr 19, 2020
1 parent 63c6e9a commit f86eb80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ def load_ms_cache_data():
Tasks.later(restart_automatically, after=21600)

try:
update_tld_names()
if GlobalVars.metasmoke_host:
update_tld_names()
except TldIOError as ioerr:
with open('errorLogs.txt', 'a', encoding="utf-8") as errlogs:
if "permission denied:" in str(ioerr).lower():
Expand Down

0 comments on commit f86eb80

Please sign in to comment.