diff options
author | Denis Laxalde <denis@laxalde.org> | 2019-06-24 21:53:25 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-25 10:18:51 -0400 |
commit | 0aca4c9fafaf2d04d3b0e04d37858c5ceb3d3912 (patch) | |
tree | 7bd9c8d3e1d6abdbf95f6ee8d7a2618d6b22aac2 | |
parent | abcd04824d86ff4724b5024d2330c95503279b74 (diff) |
Use a None default when reading builds.sr.ht config
This is similar to eponymous change in scm.sr.ht.
We also need to avoid using get_origin() helper because it lacks a
"default" option.
-rw-r--r-- | gitsrht/submit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitsrht/submit.py b/gitsrht/submit.py index 94a0856..c497ed6 100644 --- a/gitsrht/submit.py +++ b/gitsrht/submit.py @@ -23,8 +23,8 @@ if not hasattr(db, "session"): db = DbSession(cfg("git.sr.ht", "connection-string")) db.init() -builds_sr_ht = get_origin("builds.sr.ht") -builds_client_id = cfg("builds.sr.ht", "oauth-client-id") +builds_sr_ht = cfg("builds.sr.ht", "origin", None) +builds_client_id = cfg("builds.sr.ht", "oauth-client-id", None) git_sr_ht = get_origin("git.sr.ht", external=True) def first_line(text): |