From: Ralf Jung Date: Sat, 6 Oct 2012 10:53:47 +0000 (+0200) Subject: complain if a connector is both internal and external X-Git-Url: https://git.ralfj.de/lilass.git/commitdiff_plain/4adba90eb31a8d517215ee89b9b4e94b1d2bf6dd complain if a connector is both internal and external --- 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)