Skip to content

Commit

Permalink
print(error)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriWahl committed Oct 10, 2023
1 parent 306a029 commit 17468a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Nagstamon/QUI/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,17 @@
import gssapi.raw.cython_converters
from requests_gssapi import HTTPSPNEGOAuth as HTTPSKerberos
KERBEROS_AVAILABLE = True
except ImportError:
print('No Kerberos available')
except ImportError as error:
print(error)
else:
# requests_gssapi is newer but not available everywhere
try:
# requests_gssapi needs installation of KfW - Kerberos for Windows
# requests_kerberoes doesn't
from requests_kerberos import HTTPKerberosAuth as HTTPSKerberos
KERBEROS_AVAILABLE = True
except ImportError:
print('No Kerberos available')
except ImportError as error:
print(error)

# since Qt6 HighDPI-awareness is default behaviour
if QT_VERSION_MAJOR < 6:
Expand Down
8 changes: 4 additions & 4 deletions Nagstamon/Servers/Generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@
import gssapi.raw.cython_converters
from requests_gssapi import HTTPSPNEGOAuth as HTTPSKerberos
KERBEROS_AVAILABLE = True
except ImportError:
print('No Kerberos available')
except ImportError as error:
print(error)
else:
# requests_gssapi is newer but not available everywhere
try:
# requests_gssapi needs installation of KfW - Kerberos for Windows
# requests_kerberoes doesn't
from requests_kerberos import HTTPKerberosAuth as HTTPSKerberos
KERBEROS_AVAILABLE = True
except ImportError:
print('No Kerberos available')
except ImportError as error:
print(error)

# disable annoying SubjectAltNameWarning warnings
try:
Expand Down

0 comments on commit 17468a2

Please sign in to comment.