frappy_psi/adq_mr (ultrasound): exit on reboot error message

otherwise the error message is confusing
+ remove CR from line endings in adq_mr.py

Change-Id: Ia465a26803a92677383969ff620ef35e58f1a5ec
This commit is contained in:
zolliker 2025-03-28 14:25:16 +01:00
parent 8560384529
commit 0ef484e082

View File

@ -104,7 +104,8 @@ class Adq:
if n_of_adq != 1: if n_of_adq != 1:
print('number of ADQs must be 1, not %d' % n_of_adq) print('number of ADQs must be 1, not %d' % n_of_adq)
print('it seems the ADQ was not properly closed') print('it seems the ADQ was not properly closed')
raise RuntimeError('please try again or reboot') print('please try again or reboot')
sys.exit(0)
atexit.register(self.deletecu) atexit.register(self.deletecu)
signal.signal(signal.SIGTERM, lambda *_: sys.exit(0)) signal.signal(signal.SIGTERM, lambda *_: sys.exit(0))