From 73661fae19cd5e3088643575ef01fdfe60032e8f Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Fri, 9 Jun 2023 15:49:38 +0200 Subject: [PATCH] fix cli crash if engine does not exist in -d flag --- bin/__pycache__/handler.cpython-311.pyc | Bin 11145 -> 11204 bytes smuL-cli.py | 5 +++++ 2 files changed, 5 insertions(+) diff --git a/bin/__pycache__/handler.cpython-311.pyc b/bin/__pycache__/handler.cpython-311.pyc index 086efc86db7f164f591255fdb918587f22cad129..81aa30108399d834319ea3aea432cde87d069844 100644 GIT binary patch delta 214 zcmeASKN8NnoR^o20SMOWG^bQ=S-WkrjoR^o20SLA#Hm4+QRE*C?+$yZvLaV znuYPk=B;Y|Op?KjtfC(nu#l5uHP16fPuA6vV9ea?re)7)AIQWAREnMa2p0c>L$*j5 G=q> ' + entry ) print( '\n\n' ) else: + try: + engineInfo[ args.details.lower() ] + except KeyError: + print( '\n\n ==> That engine does not exist. Please use the -p option to check for available engines!\n\n' ) + return False print( '\n\n ==> INFOS about ' + engineInfo[ args.details.lower() ][ 'displayName' ] + '\n' ) print( ' --> Engine cli option is: ' + engineInfo[ args.details ][ 'abbr' ].lower() ) print( ' --> CLI mode options are: ' )