Server IP : 111.118.215.189 / Your IP : 18.117.158.174 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/libexec/kcare/python/kcarectl/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
# Copyright (c) Cloud Linux Software, Inc # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENCE.TXT from .py23 import HTTPError class SafeExceptionWrapper(Exception): def __init__(self, inner, etype=None, details=None): self.inner = inner self.etype = etype self.details = details class KcareError(Exception): """Base kernelcare exception which will be considered as expected error and the full traceback will not be shown. """ pass class NotFound(HTTPError): pass class NoLibcareLicenseException(KcareError): pass class AlreadyTrialedException(KcareError): def __init__(self, ip, created, *args, **kwargs): super(AlreadyTrialedException, self).__init__(*args, **kwargs) self.created = created[0 : created.index('T')] self.ip = ip def __str__(self): return 'The IP {0} was already used for a trial license on {1}'.format(self.ip, self.created) class UnableToGetLicenseException(KcareError): def __init__(self, code): Exception.__init__(self, 'Unknown Issue when getting trial license. Error code: ' + str(code)) class BadSignatureException(KcareError): pass def check_exc(*exc_list): def inner(e, state): return isinstance(e, exc_list) return inner