Changeset 579
- Timestamp:
- 07/10/08 18:09:45
- Arquivos:
-
- cacic/trunk/agente-linux/pycacic/src/cacic.py (modified) (4 diffs)
Legenda:
- Não modificado
- Adicionado
- Removido
- Modificado
- Copiado
- Movido
cacic/trunk/agente-linux/pycacic/src/cacic.py
r578 r579 37 37 class Cacic: 38 38 39 # seconds to sleep (socket errors) 40 SLEEP_TIME = 600 39 41 VERSION = Reader.getPycacic()['version'] 40 42 … … 52 54 # Gerente de Coletas 53 55 self.gc = Ger_Cols(self.VERSION) 56 57 except socket.error: 58 CLog.appendLine(_l.get('pycacic'), '%s %s %s' % (_l.get('sleeping'), self.SLEEP_TIME, _l.get('seconds'))) 59 time.sleep(SLEEP_TIME) 60 54 61 except: 55 62 print 'Erro ao instanciar Cacic()' … … 209 216 sys.exit(1) 210 217 211 # seconds to sleep (socket errors)212 SLEEP_TIME = 600213 218 214 219 cacic = Cacic() … … 219 224 220 225 except socket.error: 221 CLog.appendLine(_l.get('pycacic'), '%s %s %s' % (_l.get('sleeping'), SLEEP_TIME, _l.get('seconds')))226 CLog.appendLine(_l.get('pycacic'), '%s %s %s' % (_l.get('sleeping'), cacic.SLEEP_TIME, _l.get('seconds'))) 222 227 time.sleep(SLEEP_TIME) 223 228
