Merge pull request #66 from rojosinalma/patch-1

Fixes Python version check
This commit is contained in:
Timothy Miller 2021-10-30 16:22:46 -04:00 committed by GitHub
commit bc06202b35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,14 +181,14 @@ def updateIPs(ips):
commitRecord(ip) commitRecord(ip)
if __name__ == '__main__': if __name__ == '__main__':
version = float(str(sys.version_info[0]) + "." + str(sys.version_info[1])) version = int(str(sys.version_info[0]) + str(sys.version_info[1]))
shown_ipv4_warning = False shown_ipv4_warning = False
shown_ipv6_warning = False shown_ipv6_warning = False
ipv4_enabled = True ipv4_enabled = True
ipv6_enabled = True ipv6_enabled = True
purgeUnknownRecords = False purgeUnknownRecords = False
if(version < 3.5): if(version < 35):
raise Exception("🐍 This script requires Python 3.5+") raise Exception("🐍 This script requires Python 3.5+")
config = None config = None