Refined usage of function

This commit is contained in:
hyugogirubato 2024-07-07 16:26:32 +02:00
parent 0bd581387d
commit 9400e5e7b0
1 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ class Cdm:
client_id: ClientIdentification = license_request.client_id client_id: ClientIdentification = license_request.client_id
self.set_client_id(data=client_id) self.set_client_id(data=client_id)
except Exception as e: except Exception as e:
self.logger.error('Error parsing challenge: %s', e) self.logger.warning('Failed to set challenge data: %s', e)
def set_private_key(self, data: bytes) -> None: def set_private_key(self, data: bytes) -> None:
""" """
@ -93,7 +93,7 @@ class Cdm:
self.logger.debug('Receive private key: \n\n%s\n', key.exportKey('PEM').decode('utf-8')) self.logger.debug('Receive private key: \n\n%s\n', key.exportKey('PEM').decode('utf-8'))
self.private_key[key.n] = key self.private_key[key.n] = key
except Exception as e: except Exception as e:
self.logger.error('Error parsing private key: %s', e) self.logger.warning('Failed to set private key: %s', e)
def set_client_id(self, data: Union[ClientIdentification, bytes]) -> None: def set_client_id(self, data: Union[ClientIdentification, bytes]) -> None:
""" """
@ -122,7 +122,7 @@ class Cdm:
self.logger.debug('Receive client id: \n\n%s\n', json.dumps(self.__client_info(client_id), indent=2)) self.logger.debug('Receive client id: \n\n%s\n', json.dumps(self.__client_info(client_id), indent=2))
self.client_id[key.n] = client_id self.client_id[key.n] = client_id
except Exception as e: except Exception as e:
self.logger.error('Error parsing client ID: %s', e) self.logger.warning('Failed to set client ID: %s', e)
def export(self, parent: Path, wvd: bool = False) -> bool: def export(self, parent: Path, wvd: bool = False) -> bool:
""" """