summaryrefslogtreecommitdiffstats
path: root/source4/scripting/bin
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2014-04-21 17:32:36 +0200
committerKamen Mazdrashki <kamenim@samba.org>2014-04-22 23:34:15 +0200
commitb241aacc4658a93102bc69d8f4a9c4a542b18cdd (patch)
tree87cc47c6c5130717adcc0b420226729c56e558fe /source4/scripting/bin
parent42fb23b8b28601baaaca8c4f695a220ca1ead64b (diff)
downloadsamba-b241aacc4658a93102bc69d8f4a9c4a542b18cdd.tar.gz
samba-b241aacc4658a93102bc69d8f4a9c4a542b18cdd.tar.xz
samba-b241aacc4658a93102bc69d8f4a9c4a542b18cdd.zip
s4:samba_kcc: Fix error handling opening export ldif file
Change-Id: If52440272513ef244e33481476da0e884969153c Signed-off-by: Kamen Mazdrashki <kamenim@samba.org> Reviewed-By: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-xsource4/scripting/bin/samba_kcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/bin/samba_kcc b/source4/scripting/bin/samba_kcc
index 6301e49b4f9..d752f45b5d5 100755
--- a/source4/scripting/bin/samba_kcc
+++ b/source4/scripting/bin/samba_kcc
@@ -2037,8 +2037,8 @@ class KCC(object):
try:
f = open(ldif_file, "w")
- except (enum, estr):
- logger.error("Unable to open (%s) : %s" % (ldif_file, estr))
+ except IOError as ioerr:
+ logger.error("Unable to open (%s) : %s" % (ldif_file, str(ioerr)))
return 1
try: