make the container reboot

master
ifiguero 2023-10-02 16:38:46 -03:00
parent 50727c5e32
commit 90beddd823
2 changed files with 18 additions and 20 deletions

View File

@ -208,6 +208,7 @@ async def cleanupSent():
except: except:
await log.error('Traceback {}'.format(traceback.format_exc())) await log.error('Traceback {}'.format(traceback.format_exc()))
raise('Error al leer correos pendientes. Reiniciando servicio.')
return returnvalue return returnvalue

View File

@ -29,11 +29,8 @@ class ilabHandler:
async def handle_RCPT(self, server, session, envelope, address, rcpt_options): async def handle_RCPT(self, server, session, envelope, address, rcpt_options):
await log.info(u"RCPT '{}'".format(address)) await log.info(u"RCPT '{}'".format(address))
valid = False
try:
valid = await validate_direccion(address) valid = await validate_direccion(address)
except BaseException as e:
await log.error('Traceback {}'.format(traceback.format_exc()))
if valid is None: if valid is None:
await log.error(u"RCPT ERROR '{}' inválido".format(address)) await log.error(u"RCPT ERROR '{}' inválido".format(address))