diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2014-04-21 17:32:36 +0200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2014-04-22 23:34:15 +0200 |
commit | b241aacc4658a93102bc69d8f4a9c4a542b18cdd (patch) | |
tree | 87cc47c6c5130717adcc0b420226729c56e558fe /source4/scripting/bin | |
parent | 42fb23b8b28601baaaca8c4f695a220ca1ead64b (diff) | |
download | samba-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-x | source4/scripting/bin/samba_kcc | 4 |
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: |