Update config call for newer versions of ConfigParser

ConfigParser now uses `read_file` instead of `readfp`.
This commit is contained in:
Badri Sunderarajan 2024-10-25 13:16:17 +05:30
parent f0f1e800ae
commit de07dd3d40
Signed by: badrihippo
GPG key ID: 9F594532AD60DE03

View file

@ -13,7 +13,7 @@ class Configs:
if not os.path.exists(path):
return
self._config_parser.readfp(open(path))
self._config_parser.read_file(open(path))
def get(self, name):
try: