From 4adba90eb31a8d517215ee89b9b4e94b1d2bf6dd Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 6 Oct 2012 12:53:47 +0200 Subject: [PATCH] complain if a connector is both internal and external --- dsl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dsl.py b/dsl.py index fa7750a..fd7f108 100755 --- a/dsl.py +++ b/dsl.py @@ -121,7 +121,9 @@ def main(): externalConnectors = config['externalConnectors'] for connector in externalConnectors: if not connector in connectors: - raise Exception("Connector %s does not exist, there is an error in your config file." % internalConnector) + raise Exception("Connector %s does not exist, there is an error in your config file." % connector) + if connector == internalConnector: + raise Exception("%s is both internal and external, that doesn't make sense." % connector) else: externalConnectors = connectors.keys() externalConnectors.remove(internalConnector) -- 2.30.2