Change try/except position

This commit is contained in:
Kload 2012-10-06 18:09:38 +02:00
parent 9a445293ab
commit 5b262362af

View file

@ -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