Fix command-not-found handling

This commit is contained in:
Samuel Sloniker 2022-12-01 12:02:03 -08:00
parent 9757d2c18d
commit 63c5ad520d
Signed by: kj7rrv
GPG Key ID: 1BB4029E66285A62

View File

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