瀏覽代碼

Typo fix

pull/62/head
Ben Kurtovic 5 月之前
父節點
當前提交
0dd59415d9
共有 1 個檔案被更改,包括 1 行新增 和 1 行删除
  1. +1
    -1
      src/copyvios/cache.py

+ 1
- 1
src/copyvios/cache.py 查看文件

@@ -63,7 +63,7 @@ def _get_engine(bot: Bot) -> sqlalchemy.Engine:
def _make_cache() -> AppCache:
bot = Bot(".earwigbot", 100)

oauth_config = cache.bot.config.wiki.get("copyvios", {}).get("oauth", {})
oauth_config = bot.config.wiki.get("copyvios", {}).get("oauth", {})
if oauth_config.get("consumer_token") is None:
raise ValueError(
"No OAuth consumer token is configured (config.wiki.copyvios.oauth.consumer_token)"


Loading…
取消
儲存