From 7d0685bbb3f71b75547a4cf428f05bc33828b280 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 14 Aug 2015 16:43:41 +1200 Subject: [PATCH] python:samba/upgrade.py Fix format string syntax in error condition BUG: https://bugzilla.samba.org/show_bug.cgi?id=11436 Signed-off-by: Andrew Bartlett --- python/samba/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/upgrade.py b/python/samba/upgrade.py index 94b7732..1ef0b39 100644 --- a/python/samba/upgrade.py +++ b/python/samba/upgrade.py @@ -407,7 +407,7 @@ def get_posix_attr_from_ldap_backend(logger, ldb_object, base_dn, user, attr): expression=("(&(objectClass=posixAccount)(uid=%s))" % (user)), attrs=[attr]) except ldb.LdbError, e: - raise ProvisioningError("Failed to retrieve attribute %s for user %s, the error is: %s", attr, user, e) + raise ProvisioningError("Failed to retrieve attribute %s for user %s, the error is: %s", (attr, user, e)) else: if msg.count <= 1: # This will raise KeyError (which is what we want) if there isn't a entry for this user -- 2.5.0