Fix command-not-found handling
This commit is contained in:
parent
9757d2c18d
commit
63c5ad520d
|
@ -1,3 +1,5 @@
|
||||||
|
from fibonaccios.exceptions import *
|
||||||
|
|
||||||
_cache = {}
|
_cache = {}
|
||||||
|
|
||||||
def get_app(app):
|
def get_app(app):
|
||||||
|
@ -6,7 +8,7 @@ def get_app(app):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
try:
|
try:
|
||||||
module = __import__(f'/bin/{app}')
|
module = __import__(f'/bin/{app}')
|
||||||
except AttributeError:
|
except ImportError:
|
||||||
raise AppNotFound(app)
|
raise AppNotFound(app)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user