From 91a7e773b2be793bca7013c190d7b89f4b9762ab Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Mon, 6 Oct 2014 08:17:39 -0500 Subject: [PATCH] Don't import config for IPSC not enabled --- dmrlink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmrlink.py b/dmrlink.py index a8e0429..c5062bc 100755 --- a/dmrlink.py +++ b/dmrlink.py @@ -89,7 +89,7 @@ try: 'LOG_LEVEL': config.get(section, 'LOG_LEVEL'), 'LOG_NAME': config.get(section, 'LOG_NAME') } - else: + elif config.getboolean(section, 'ENABLED'): # All other sections define indiviual IPSC Networks we connect to # Each IPSC network config will contain the following three sections NETWORK.update({section: {'LOCAL': {}, 'MASTER': {}, 'PEERS': {}}})