Implemented a global variable for acceptable handlers
This commit is contained in:
@@ -2,6 +2,8 @@ import sound
|
||||
import configparser
|
||||
from os.path import exists
|
||||
|
||||
PDB_ACCEPTABLE_HANDLERS = ['gqrx', 'op25']
|
||||
|
||||
|
||||
def check_if_config_exists():
|
||||
if exists('./config.ini'):
|
||||
@@ -167,7 +169,7 @@ def get_handler():
|
||||
handler = None
|
||||
while not handler:
|
||||
handler = str(input(f"Please enter the name of the handler you would like to use:\t"))
|
||||
if handler == "gqrx":
|
||||
if handler in PDB_ACCEPTABLE_HANDLERS:
|
||||
return handler
|
||||
elif handler == '':
|
||||
return handler
|
||||
|
||||
Reference in New Issue
Block a user