From 5ac9a3fa465f814ba316e526b7495a29b77a5980 Mon Sep 17 00:00:00 2001 From: FrantiĊĦek Zatloukal Date: Mar 31 2023 11:14:06 +0000 Subject: Import fedora.client instead of entire fedora While trying to catch fedora.client.ServerError, module 'fedora' has no attribute 'client'. Work around that by importing client directly (we don't use anything else from that anyway). --- diff --git a/fedora-easy-karma.py b/fedora-easy-karma.py index d01f927..de34e45 100755 --- a/fedora-easy-karma.py +++ b/fedora-easy-karma.py @@ -35,7 +35,7 @@ from textwrap import wrap from bodhi.client.bindings import BodhiClient, BodhiClientException import dnf # Used to catch fedora.client.AuthError and fedora.client.ServerError exceptions -import fedora +import fedora.client # Used to catch Bodhi-related exceptions import requests