diff options
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/upgrade.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/upgrade.py b/source4/scripting/python/samba/upgrade.py index 8157b457eb..41c93ea151 100644 --- a/source4/scripting/python/samba/upgrade.py +++ b/source4/scripting/python/samba/upgrade.py @@ -132,8 +132,8 @@ def import_idmap(idmapdb, samba3, logger): try: samba3_idmap = samba3.get_idmap_db() - except IOError as (errno, strerror): - logger.warn('Cannot open idmap database, Ignoring: ({0}): {1}'.format(errno, strerror)) + except IOError, e: + logger.warn('Cannot open idmap database, Ignoring: %s', str(e)) return currentxid = max(samba3_idmap.get_user_hwm(), samba3_idmap.get_group_hwm()) |