# HG changeset patch # User haftmann # Date 1149773107 -7200 # Node ID e9e9be6111bb893c7c3fc5aa0dfef93da107e4d0 # Parent 4499a73efb1c12e1189ac2b1bc481dba54446f78 fixed owner bug diff -r 4499a73efb1c -r e9e9be6111bb Admin/website/build/obfusmail.py --- a/Admin/website/build/obfusmail.py Thu Jun 08 14:48:28 2006 +0200 +++ b/Admin/website/build/obfusmail.py Thu Jun 08 15:25:07 2006 +0200 @@ -135,8 +135,14 @@ mod = os.stat(htmlfile).st_mode gid = os.stat(htmlfile).st_gid cmd("convert label:'%s' '%s'" % (baremail, imgfile)) - os.chmod(imgfile, mod) - os.chown(imgfile, -1, gid) + try: + os.chmod(imgfile, mod) + except OSError: + pass + try: + os.chown(imgfile, -1, gid) + except OSError: + pass if arg is not None: mailsimple = u"{%s} AT [%s] WITH (%s)" % (name, host, arg) mailscript = u" ".join(map(mk_line, ['']));