@@ 1,6 1,13 @@
Guardian Changelog
==================
+## 0.2.1 (2021-07-04)
+
+### New
+
+- fix loading of the configuration file.
+
+
## 0.2.0 (2021-06-27)
### New
@@ 9,15 9,15 @@ config = configparser.SafeConfigParser()
try:
config.read("guardian/config/conf.cfg")
except:
- config.read("guardian/config/conf.cfg.sample")
+ pass #config.read("guardian/config/conf.cfg.sample")
-IRC_CHANNEL = config.get("irc", "channel")
-IRKER_HOST = config.get("irc", "host")
-IRKER_PORT = int(config.get("irc", "port"))
+IRC_CHANNEL = config.get("irc", "channel", fallback="irc://irc.libera.chat/#testGuardian")
+IRKER_HOST = config.get("irc", "host", fallback="localhost")
+IRKER_PORT = int(config.get("irc", "port", fallback=6659))
-MAIL_FROM = config.get("email", "mail_from")
-MAIL_TO = [config.get("email", "mail_to")]
-SMTP_SERVER = config.get("email", "smtp")
-USERNAME = config.get("email", "username")
-PASSWORD = config.get("email", "password")
+MAIL_FROM = config.get("email", "mail_from", fallback="guardian@localhost")
+MAIL_TO = [config.get("email", "mail_to", fallback="")]
+SMTP_SERVER = config.get("email", "smtp", fallback="")
+USERNAME = config.get("email", "username", fallback="")
+PASSWORD = config.get("email", "password", fallback="")
@@ 1,6 1,6 @@
[tool.poetry]
name = "guardian"
-version = "0.2.0"
+version = "0.2.1"
description = "Monitor the status of a set of services."
authors = ["Cédric Bonhomme <cedric@cedricbonhomme.org>"]
license = "AGPL-3.0-or-later"