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