diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-09-09 12:44:56 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-09-09 08:54:16 +0200 |
commit | 47130f97fd371de2541be1a7216dd1ae907bfde2 (patch) | |
tree | 100eae41f5c80be39131835d5dfcc9f33d882cf2 | |
parent | 25b9760a42929c27be4399cd3d7bff5bb71b67db (diff) | |
download | samba-47130f97fd371de2541be1a7216dd1ae907bfde2.tar.gz samba-47130f97fd371de2541be1a7216dd1ae907bfde2.tar.bz2 samba-47130f97fd371de2541be1a7216dd1ae907bfde2.zip |
s4-s3-upgrade Do not use python 2.6 style exceptions
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Sep 9 08:54:16 CEST 2011 on sn-devel-104
-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()) |