mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-28 14:01:04 -05:00
WTE: raise the right exception
This commit is contained in:
parent
e9edceb735
commit
26be37f6d7
@ -39,7 +39,7 @@ import json
|
|||||||
try: # Python 3
|
try: # Python 3
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
except ImportError: # Python 2
|
except ImportError: # Python 2
|
||||||
raise callbacks.Error('This plugin requires Python 3!')
|
raise ImportError('This plugin requires Python 3!')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from supybot.i18n import PluginInternationalization
|
from supybot.i18n import PluginInternationalization
|
||||||
|
Loading…
x
Reference in New Issue
Block a user