~sircmpwn/core.sr.ht

434a84885c565103028839448283e8f847f12ab1 — Drew DeVault 4 years ago 83676e2
Add better config handling
1 files changed, 2 insertions(+), 1 deletions(-)

M srht/config.py
M srht/config.py => srht/config.py +2 -1
@@ 8,7 8,8 @@ def load_config(name, paths=None):
        paths = [ "config.ini", "/etc/sr.ht/{}.ini".format(name) ]
    for path in paths:
        try:
            config.readfp(open(path))
            with open(path) as f:
                config.readfp(f)
        except FileNotFoundError:
            pass