Skip to content

assembly.py: Handle the flock() exception more aggressively

Devcurmudgeon requested to merge pull/190/defensive-claim-exception into master

Created by: gtristan

The new claim() implementation avoids cases where we catch a nested IOError from code blocks within a claim() such as:

with claim():
	 code_block()

Without this fix, IOErrors from said code blocks would be caught as if they were an expected failure to acquire the lock, both breaking the locking code and making nested IOError exceptions very tricky to debug.

Merge request reports