We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08b9a0a commit 7fb3c09Copy full SHA for 7fb3c09
src/instrumentman/protocoltest/app.py
@@ -198,11 +198,16 @@ def main(
198
retry=retry,
199
sync_after_timeout=sync_after_timeout
200
) as com:
201
- if protocol == "geocom":
202
- tps = GeoCom(com)
203
- tests_geocom(tps)
204
- elif protocol == "gsidna":
205
- dna = GsiOnlineDNA(com)
206
- tests_gsidna(dna)
+ try:
+ if protocol == "geocom":
+ tps = GeoCom(com)
+ tests_geocom(tps)
+ elif protocol == "gsidna":
+ dna = GsiOnlineDNA(com)
207
+ tests_gsidna(dna)
208
+ except Exception as e:
209
+ echo_red("An exception occured while running the tests")
210
+ echo_red(e)
211
+
212
except (SerialException, ConnectionError) as e:
213
echo_red(f"Connection was not successful ({e})")
0 commit comments