diff --git a/utilities/wait_for b/utilities/wait_for index e87fd566a4c..84c929ad4be 100644 --- a/utilities/wait_for +++ b/utilities/wait_for @@ -198,7 +198,7 @@ def main(): break except OSError, e: # File not present - if os.errno == 2: + if e.errno == 2: time.sleep(1) else: elapsed = datetime.datetime.now() - start