Skip to content
Snippets Groups Projects
Commit 2782ae2e authored by Francesco Tripaldi's avatar Francesco Tripaldi
Browse files

Fix error on finally statement

parent a6ec3da0
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,6 @@ import numpy as np
def main():
try:
selfseq_dev = tango.DeviceProxy(sys.argv[1])
......@@ -28,7 +26,7 @@ def main():
selfseq_dev.write_attribute("ScriptErr","")
except DevFailed as e:
print(str(e))
#print(str(e))
selfseq_dev.write_attribute("ScriptErr", f"{type(e).__name__} while defining tango devices: {e}") # scrive l'eventuale errore sull'attributo "ScriptErr" della sequenza
sys.exit(1)
......@@ -57,7 +55,7 @@ def main():
except Exception as e:
timing_dev.write_attribute("ExtractionDelay", starting_time)
selfseq_dev.write_attribute("ScriptErr", str(e))
finally
finally:
timing_dev.write_attribute("ExtractionDelay", starting_time)
if __name__ == '__main__':
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment