mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Raise an exception when plugin is not found instead of returning None in i18n.getPluginDir()
This commit is contained in:
parent
4f91a62f27
commit
ebb3aae81c
@ -88,7 +88,7 @@ def getPluginDir(plugin_name):
|
|||||||
for allowed_file in allowed_files:
|
for allowed_file in allowed_files:
|
||||||
if filename.endswith(allowed_file):
|
if filename.endswith(allowed_file):
|
||||||
return filename[0:-len(allowed_file)]
|
return filename[0:-len(allowed_file)]
|
||||||
return
|
raise Exception('Plugin %s not found by i18n.' % plugin_name)
|
||||||
|
|
||||||
def getLocalePath(name, localeName, extension):
|
def getLocalePath(name, localeName, extension):
|
||||||
"""Gets the path of the locale file of the given plugin ('supybot' stands
|
"""Gets the path of the locale file of the given plugin ('supybot' stands
|
||||||
|
Loading…
x
Reference in New Issue
Block a user