mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 04:56:29 -06:00
Add warning for Python 3.7
This commit is contained in:
parent
734a00237a
commit
a5024a65a0
@ -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()})"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user