LeslieLeung / heimdallr

一个非常轻量的通知网关,可以聚合各种推送渠道,使用 Serverless 部署,几乎零成本运行。
https://heimdallr.zeabur.app/docs
GNU General Public License v3.0
533 stars 54 forks source link

fix: add exception handle on problematic SMTP config #44

Closed LeslieLeung closed 6 months ago

LeslieLeung commented 6 months ago

As mentioned in #39 , a problematic SMTP config might cause a unhandled exception. Trying to add a global Exception to solve the problem and provide a clear error message which should look like:

ERROR:heimdallr.channel.email:Email send failed: [Errno 8] nodename nor servname provided, or not known

The global Exception thingy is not recommended I guess, hope I'll come around and fix this later.

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud