Fixes Python version check
This fixes the Python version check. float() cuts trailing zeroes: ```python import sys ```
This commit is contained in:
parent
2a4d9530dd
commit
eebbcfbbdf
@ -181,14 +181,14 @@ def updateIPs(ips):
|
||||
commitRecord(ip)
|
||||
|
||||
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_ipv6_warning = False
|
||||
ipv4_enabled = True
|
||||
ipv6_enabled = True
|
||||
purgeUnknownRecords = False
|
||||
|
||||
if(version < 3.5):
|
||||
if(version < 35):
|
||||
raise Exception("🐍 This script requires Python 3.5+")
|
||||
|
||||
config = None
|
||||
|
||||
Reference in New Issue
Block a user