Encode before copy metadata. fix #2832

This commit is contained in:
Ruud
2014-02-16 14:19:15 +01:00
parent 30f5a3944c
commit f50c8504cf
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ class Plugin(object):
f.write(content)
f.close()
os.chmod(path, Env.getPermission('file'))
except Exception as e:
except:
log.error('Unable writing to file "%s": %s', (path, traceback.format_exc()))
if os.path.isfile(path):
os.remove(path)