浏览代码

Add missing arg to get_proxy_url_from_api

Toni Spets 2 年之前
父节点
当前提交
62780c3ef6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mauigpapi/proxy.py

+ 1 - 1
mauigpapi/proxy.py

@@ -37,7 +37,7 @@ class ProxyHandler:
     def __init__(self, api_url: str | None) -> None:
         self.api_url = api_url
 
-    def get_proxy_url_from_api(self) -> str | None:
+    def get_proxy_url_from_api(self, reason: str | None = None) -> str | None:
         assert self.api_url is not None
 
         api_url = str(URL(self.api_url).update_query({"reason": reason} if reason else {}))