Skip to content

Commit

Permalink
pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CastagnaIT committed Sep 20, 2023
1 parent df9cf16 commit 8784182
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/lib/utils/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from time import time

import xbmcvfs
from requests.sessions import cookiejar_from_dict

from resources.lib.common.exceptions import MissingCookiesError
from resources.lib.globals import G
Expand Down Expand Up @@ -72,7 +71,7 @@ def _find_no_duplicates(self, name, domain=None, path=None):
if path is None or cookie.path == path:
if to_return is not None:
# if there are multiple cookies that meet passed in criteria
raise Exception(f"There are multiple cookies with name, {name!r}") # pylint: disable=broad-except
raise Exception(f"There are multiple cookies with name, {name!r}") # pylint: disable=broad-exception-raised
# we will eventually return this as long as no cookie conflict
to_return = cookie.value
if to_return:
Expand Down

0 comments on commit 8784182

Please sign in to comment.