summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-09-09 12:44:56 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-09-09 08:54:16 +0200
commit47130f97fd371de2541be1a7216dd1ae907bfde2 (patch)
tree100eae41f5c80be39131835d5dfcc9f33d882cf2 /source4/scripting/python
parent25b9760a42929c27be4399cd3d7bff5bb71b67db (diff)
downloadsamba-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
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/upgrade.py4
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())