diff options
author | 2015-05-12 22:25:39 +0200 | |
---|---|---|
committer | 2015-05-12 22:25:39 +0200 | |
commit | 971754eba93701cfb22bc4399a37debf238eddf1 (patch) | |
tree | e3a36023f93b73a1621de0c6c9503ccbb301fb03 /pyload/manager/Account.py | |
parent | Fix dict generators for python 2.5 (diff) | |
download | pyload-971754eba93701cfb22bc4399a37debf238eddf1.tar.xz |
General fixup (1)
Diffstat (limited to 'pyload/manager/Account.py')
-rw-r--r-- | pyload/manager/Account.py | 7 |
1 files changed, 5 insertions, 2 deletions
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)) |