Skip to content

Commit

Permalink
python: remove raise_from from future package
Browse files Browse the repository at this point in the history
future package is outdated and won't work in python 3.13
#2808
  • Loading branch information
nikromen committed Jul 18, 2023
1 parent 46ae367 commit 5d8afbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/copr/v3/auth/gssapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
except ImportError:
requests_gssapi = None

from future.utils import raise_from
from copr.v3.exceptions import CoprAuthException
from copr.v3.requests import munchify, handle_errors
from copr.v3.auth.base import BaseAuth
Expand Down Expand Up @@ -40,7 +39,8 @@ def make_expensive(self):
except requests_gssapi.exceptions.SPNEGOExchangeError as err:
msg = "Can not get session for {0} cookie via GSSAPI: {1}".format(
self.config["copr_url"], err)
raise_from(CoprAuthException(msg), err)
# TODO: change to `raise from` once we stop supporting rhel7
raise CoprAuthException(msg) # pylint: disable=raise-missing-from

handle_errors(response)
data = munchify(response)
Expand Down

0 comments on commit 5d8afbb

Please sign in to comment.