From 51fdce0de6897c67eca061602274e067e49276b3 Mon Sep 17 00:00:00 2001 From: CoherenceController Date: Fri, 10 Jun 2016 16:32:44 -0400 Subject: [PATCH] File not found error for Python 2.7 --DR --- QGL/PatternUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QGL/PatternUtils.py b/QGL/PatternUtils.py index 1999eca4..4e5cb5b0 100644 --- a/QGL/PatternUtils.py +++ b/QGL/PatternUtils.py @@ -277,7 +277,7 @@ def flatten_pulses(): try: with open(path + "-" + awg + ".offsets", "rb") as FID: offsets = pickle.load(FID) - except FileNotFoundError: + except IOError: print("Offset file not found for {}, skipping pulses {}".format(awg, [str(p) for p in ps.values()])) continue print("Updating pulses for {}".format(awg))