Skip to content

Commit bdb45c3

Browse files
author
Axel Hörteborn
committed
Added a warning of too old Python version
1 parent a753dc7 commit bdb45c3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

GeoDataFarm.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
***************************************************************************
1818
1919
"""
20-
from typing import TYPE_CHECKING, Self
20+
try:
21+
from typing import TYPE_CHECKING, Self
22+
except ImportError:
23+
from qgis.PyQt.QtWidgets import QMessageBox
24+
QMessageBox.information(None, "Import Error",
25+
"Your python version within QGIS is too old, please update to python 3.11 or higher")
2126
if TYPE_CHECKING:
2227
import pytest_qgis.qgis_interface
2328
# TODO: ensure that no calls to the database within tasks handel errors correctly

0 commit comments

Comments
 (0)