GitHub user briancurtin opened a pull request:

    https://github.com/apache/libcloud/pull/166

    Import LockTimeout before trying to catch it.

    If `lock.acquire` raised any sort of exception, a `NameError` would trump 
it because the `__enter__` method was trying to catch `lockfile.LockTimeout`, 
which wasn't imported.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/briancurtin/libcloud LockTimeout_import

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/166.patch

----
commit ad4f70bd97b244f3555ae2bdf05174ded2677a94
Author: briancurtin <[email protected]>
Date:   2013-10-25T04:39:16Z

    Import LockTimeout before trying to catch it.
    
    If lock.acquire raised any sort of exception, a NameError would
    trump it because the __enter__ method was trying to catch
    lockfile.LockTimeout, which wasn't imported.

----

Reply via email to