From: Martin Zobel-Helas Date: Sun, 29 Dec 2013 19:25:06 +0000 (+0100) Subject: clean up files another way X-Git-Tag: userdir-ldap-0.3.85~38^2~8 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=3819c3833469b12455fb1aa40c410f9bc2774b93 clean up files another way Signed-off-by: Martin Zobel-Helas --- diff --git a/ud-generate b/ud-generate index 69c8794..d8c394b 100755 --- a/ud-generate +++ b/ud-generate @@ -668,10 +668,10 @@ def GenDBM(accounts, File, key): Fdb.close() except: # python-dbm names the files Fdb.db.db so we want to them to be Fdb.db - Die(File, Fdb + ".db", None) + os.remove(File + ".db") raise # python-dbm names the files Fdb.db.db so we want to them to be Fdb.db - Done(File, Fdb + ".db", None) + os.rename (File + ".db", File) # Generate the anon XEarth marker file def GenMarkers(accounts, File):