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:
@ -31,6 +31,10 @@ if platform.python_version_tuple() < ('3', '7'):
|
|||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
f"NetBox requires Python 3.7 or higher (current: Python {platform.python_version()})"
|
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()})"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user