瀏覽代碼

Add warning for Python 3.7

jeremystretch 4 年之前
父節點
當前提交
a5024a65a0
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      netbox/netbox/settings.py

+ 4 - 0
netbox/netbox/settings.py

@@ -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()})"
+    )
 
 
 #