parent
d451cc0920
commit
d077bbf8c8
|
@ -32,3 +32,4 @@ This is our current version trying to communicate between courier and mailman3.
|
||||||
* Logging error (I hope), when lmtp fails to be created.
|
* Logging error (I hope), when lmtp fails to be created.
|
||||||
* Maybe this is better?
|
* Maybe this is better?
|
||||||
* Catch exception, log based on that?
|
* Catch exception, log based on that?
|
||||||
|
* Hm, go with bare "Exception"... The catch wasn't what was failing.
|
|
@ -65,7 +65,8 @@ try:
|
||||||
# 5xx error
|
# 5xx error
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
except smtplib.SMTPException as e:
|
except Exception as e:
|
||||||
logger.error('lmtp error')
|
logger.error('lmtp error')
|
||||||
|
logger.error(traceback.format_exc())
|
||||||
logger.error('lmtp failed errorno: %s, message: %s', e.errno, e.strerror)
|
logger.error('lmtp failed errorno: %s, message: %s', e.errno, e.strerror)
|
||||||
exit(100)
|
exit(100)
|
Loading…
Reference in New Issue