From 5d8afbb8ceaafcfad85767b1960730c05a969f44 Mon Sep 17 00:00:00 2001 From: Jiri Kyjovsky Date: Mon, 17 Jul 2023 16:51:14 +0200 Subject: [PATCH] python: remove raise_from from future package future package is outdated and won't work in python 3.13 https://github.com/fedora-copr/copr/issues/2808 --- python/copr/v3/auth/gssapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/copr/v3/auth/gssapi.py b/python/copr/v3/auth/gssapi.py index 94b164bc6..1a558d59c 100644 --- a/python/copr/v3/auth/gssapi.py +++ b/python/copr/v3/auth/gssapi.py @@ -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 @@ -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)