NuWeather: Improve error on Python < 3.8

There's a walrus in plugin.py
This commit is contained in:
Val Lorentz 2023-11-01 12:49:37 +01:00 committed by GitHub
parent 11bd8181af
commit 10b4e206b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,8 +34,8 @@ NuWeather: a weather plugin for Limnoria
import sys import sys
if sys.version_info[0] < 3: if sys.version_info[0] < (3, 8):
raise RuntimeError("This plugin requires Python 3.") raise RuntimeError("This plugin requires Python 3.8 or newer.")
import supybot import supybot
from supybot import world from supybot import world