This commit is contained in:
2025-09-11 17:11:55 +02:00
parent f36a231a0b
commit 650e62a9de
+3 -2
View File
@@ -7,6 +7,7 @@ is implemented via EPICS IOC.
import enum
import threading
import time
import traceback
from typing import Any, Literal
import numpy as np
@@ -476,8 +477,8 @@ if __name__ == "__main__": # pragma: no cover
timepix.unstage()
print("Timepix unstaged.")
except Exception as e:
print(f"An error occurred: {e}")
logger.error(f"An error occurred: {e}")
content = traceback.format_exc()
logger.error(f"An error occurred: {content}")
finally:
timepix.destroy()
print("Timepix destroyed.")