mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 04:51:08 -05:00
NuWeather: Improve error on Python < 3.8
There's a walrus in plugin.py
This commit is contained in:
parent
11bd8181af
commit
10b4e206b7
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user