Validate all links every day at 00:00 (#1414)

Co-authored-by: Yann Bertrand <5855339+yannbertrand@users.noreply.github.com>
This commit is contained in:
Sitram 2020-10-13 22:57:52 +03:00 committed by GitHub
parent 7de538241d
commit 46685f9a2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View file

@ -33,9 +33,10 @@ def validate_links(links):
errors.append("TMO: " + link)
except socket.error as socketerror:
errors.append("SOC: {} : {}".format(socketerror, link))
except Exception as e:
errors.append("ERR: {} : {}".format(e, link))
return errors
if __name__ == "__main__":
num_args = len(sys.argv)
if num_args < 2: