From 971754eba93701cfb22bc4399a37debf238eddf1 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 22:25:39 +0200 Subject: General fixup (1) --- pyload/manager/Account.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pyload/manager/Account.py') diff --git a/pyload/manager/Account.py b/pyload/manager/Account.py index b743ccabc..8274c6592 100644 --- a/pyload/manager/Account.py +++ b/pyload/manager/Account.py @@ -7,7 +7,7 @@ import shutil import threading from pyload.manager.Event import AccountUpdateEvent -from pyload.utils import chmod, lock +from pyload.utils import lock ACC_VERSION = 1 @@ -132,7 +132,10 @@ class AccountManager(object): for option, values in data['options'].iteritems(): f.write("\t@%s %s\n" % (option, " ".join(values))) - os.chmod(f.name, 0600) + try: + os.chmod(f.name, 0600) + except Exception: + pass except Exception, e: self.core.log.error(str(e)) -- cgit v1.2.3