From 656589a620ca1039631127aa794e5f500555dd2b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 17 Jan 2020 23:19:17 +0000 Subject: [PATCH] Type check --- utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.py b/utils.py index d7f2d40a..835e34b2 100644 --- a/utils.py +++ b/utils.py @@ -61,6 +61,8 @@ def getStatusNumber() -> (str,str): return statusNumber,published def isEvil(domain: str) -> bool: + if not isinstance(domain, str): + return True # https://www.youtube.com/watch?v=5qw1hcevmdU evilDomains=('gab.com','gabfed.com','spinster.xyz','kiwifarms.cc','djitter.com') for concentratedEvil in evilDomains: