From 10b4e206b7ba0853d5c805f23087ffbb3a64208b Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Wed, 1 Nov 2023 12:49:37 +0100 Subject: [PATCH] NuWeather: Improve error on Python < 3.8 There's a walrus in plugin.py --- NuWeather/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NuWeather/__init__.py b/NuWeather/__init__.py index 7a300a3..81613ac 100644 --- a/NuWeather/__init__.py +++ b/NuWeather/__init__.py @@ -34,8 +34,8 @@ NuWeather: a weather plugin for Limnoria import sys -if sys.version_info[0] < 3: - raise RuntimeError("This plugin requires Python 3.") +if sys.version_info[0] < (3, 8): + raise RuntimeError("This plugin requires Python 3.8 or newer.") import supybot from supybot import world