mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Change try/except position
This commit is contained in:
parent
9a445293ab
commit
5b262362af
1 changed files with 1 additions and 1 deletions
2
yunohost
2
yunohost
|
@ -76,7 +76,7 @@ def str2fun(astr):
|
||||||
try:
|
try:
|
||||||
func = getattr(mod, function)
|
func = getattr(mod, function)
|
||||||
except NameError:
|
except NameError:
|
||||||
print 'Error: Function ' + category + '_' + action + '() is not been defined'
|
print 'Error: Function ' + category + '_' + action + '() is not defined'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
return func
|
return func
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue