Explorar o código

Fix issue with nonetype cookies

JoostSijm %!s(int64=4) %!d(string=hai) anos
pai
achega
46b17b28d0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/rival_regions_wrapper/authentication_handler.py

+ 1 - 0
src/rival_regions_wrapper/authentication_handler.py

@@ -121,6 +121,7 @@ class AuthenticationHandler:
                     self.username, self.login_method)
         cookies = self.get_cookies(self.username)
         if not cookies:
+            cookies = []
             LOGGER.info('"%s": no cookie, new login, method "%s"',
                         self.username, self.login_method)
             if self.login_method not in [