Changeset 8362


Ignore:
Timestamp:
Dec 26, 2018, 2:22:23 PM (7 months ago)
Author:
mabarracus
Message:

Fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-quota/trunk/fuentes/lliurex-quota.install/usr/share/n4d/python-plugins/QuotaManager.py

    r7802 r8362  
    66import getpass
    77import socket
     8import time
    89
    910from functools import wraps
     
    10011002        if type not in types.keys():
    10021003            raise Exception('{} not valid type for activation'.format(type))
    1003         self.activate_script(types[type])
     1004        try:
     1005            self.activate_script(types[type])
     1006        except Exception as e:
     1007            max_errors = 3
     1008            while max_errors > 0:
     1009                try:
     1010                    time.sleep(1)
     1011                    self.activate_script(types[type])
     1012                except:
     1013                    max_errors = max_errors - 1
    10041014
    10051015    def activate_script(self, script):
     
    11131123                    fs = qm['fs']
    11141124                    done = True
     1125        ret = None
    11151126        if not done:
    11161127            self.set_status_file(True)
Note: See TracChangeset for help on using the changeset viewer.