⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.112
Server IP:
65.21.180.239
Server:
Linux gowhm.eplangoweb.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.0.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
uaclient
/
api
/
Edit File: exceptions.py
from uaclient import messages from uaclient.api.errors import APIError from uaclient.exceptions import ( AlreadyAttachedError, ConnectivityError, ContractAPIError, EntitlementNotFoundError, EntitlementsNotEnabledError, InvalidProImage, LockHeldError, NonAutoAttachImageError, UrlError, UserFacingError, ) __all__ = [ "AlreadyAttachedError", "ConnectivityError", "ContractAPIError", "EntitlementNotFoundError", "InvalidProImage", "LockHeldError", "NonAutoAttachImageError", "UrlError", "UserFacingError", "EntitlementsNotEnabledError", ] class AutoAttachDisabledError(UserFacingError): def __init__(self): super().__init__( messages.AUTO_ATTACH_DISABLED_ERROR.msg, messages.AUTO_ATTACH_DISABLED_ERROR.name, ) class UnattendedUpgradesError(APIError): def __init__(self, msg): self.msg = msg self.msg_code = "unable-to-determine-unattended-upgrade-status"
Simpan