diff --git a/galsim/phase_screens.py b/galsim/phase_screens.py index 1249ef6f20..0063350bac 100644 --- a/galsim/phase_screens.py +++ b/galsim/phase_screens.py @@ -100,7 +100,7 @@ def acquire_lock(lock, block=True, timeout=None): try: yield held finally: - if held: + if held: # pragma: no branch lock.release()