1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add warning for Python 3.7

This commit is contained in:
jeremystretch
2021-11-04 13:32:52 -04:00
parent 734a00237a
commit a5024a65a0

View File

@ -31,6 +31,10 @@ if platform.python_version_tuple() < ('3', '7'):
raise RuntimeError(
f"NetBox requires Python 3.7 or higher (current: Python {platform.python_version()})"
)
if platform.python_version_tuple() < ('3', '8'):
warnings.warn(
f"NetBox v3.2 will require Python 3.8 or later. (Currently installed: Python {platform.python_version()})"
)
#