]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/blobdiff - wrpylib/mwapi.py
Use "no ssl" for simple http: requests.
[philipp/winterrodeln/wrpylib.git] / wrpylib / mwapi.py
index bf4df3da6ebc3cf6ab7fe2ca8e6f451e0e5a8aa9..5ec5df372952b49dbdfd6f322bc2b103de6fe0f9 100644 (file)
@@ -22,6 +22,8 @@ class WikiSite(Site):
         api_user = config.get('robot', 'botpassword_bot')
         api_password = config.get('robot', 'botpassword_password')
         super().__init__(api_url)
+        if api_url.startswith('http:'):
+            self.no_ssl = True
         self.login(api_user, api_password, True)
 
     def query_page(self, title: str) -> dict: