martomi / chiadog

A watch dog providing a peace in mind that your Chia farm is running smoothly 24/7.
MIT License
460 stars 123 forks source link

Fall back to SMTP without auth if server doesn't support it #365

Closed jinnatar closed 1 year ago

jinnatar commented 1 year ago

As the default is to enable auth, a server without support produces a very long stracktrace. With this change instead a clear error log is emitted and the connection is still attempted without auth.

jinnatar commented 1 year ago

This PR includes a bunch of other minor changes that overlap with the config-revamp PR #364. This is due to the typing issues already being present in the current HEAD, so likely issues found by newer versions of mypy.

jinnatar commented 1 year ago

Actually, the only thing I truly had to update was the black run & flake8 warning. The typing errors I was seeing were due to including the --check-untyped-defs mypy parameter. So if desired, I can roll this back to just b417874 & 4b3af01. But those typing fixes are in the other PR as well.