From 2a47bb5b7a909d8223adc844bcee3f6cb08c8680 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 13 Mar 2013 18:21:16 -0400 Subject: [PATCH] now actually import exception to be usable --- apt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt b/apt index 73fa17e9702..5731d4f8e59 100644 --- a/apt +++ b/apt @@ -263,7 +263,7 @@ def main(): elif p['state'] in [ 'removed', 'absent' ]: remove(module, packages, cache, p['purge']) - except LockFailedException: + except apt.cache.LockFailedException: module.fail_json(msg="Failed to lock apt for exclusive operation") # this is magic, see lib/ansible/module_common.py