403Webshell
Server IP : 104.21.4.30  /  Your IP : 104.23.197.229
Web Server : Apache
System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64
User : simottodesign.com_2tntp341vs7 ( 10011)
PHP Version : 8.3.31
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/uaclient/api/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/uaclient/api/__pycache__/errors.cpython-38.pyc
U

�d�@stddlmZmZddlmZmZddlmZddlm	Z	ddl
mZddlm
Z
eed�dd	�ZGd
d�de�ZdS)
�)�Dict�Optional)�APIResponse�ErrorWarningObject)�UserFacingError)�WARN_NEW_VERSION_AVAILABLE)�get_pro_environment)�check_for_new_version)�	exception�returnc	Cs�t|ttf�r4t|j|jp$d|jj|jp,id�}ntt	|�d|jjid�}g}t
�}|r||�ttj
|d�jtjid��tdddddd	�tt����D�ii|g|d
�S)Nzgeneric-)�title�code�meta)�versionZv1ZfailurerZenvironment_varscSsg|]\}}||d��qS))�name�value�)�.0rrrr�5/usr/lib/python3/dist-packages/uaclient/api/errors.py�
<listcomp>+s�zerror_out.<locals>.<listcomp>)Z_schema_version�result�data�errors�warnings)�
isinstancer�APIErrorr�msg�msg_code�	__class__�__name__�additional_info�strr	�appendr�formatrr�sortedr�items)r
�errorrZnew_versionrrr�	error_out
sJ
�
����
����r'cs6eZdZdeeeeeefdd��fdd�
Z�ZS)r�	api-errorN)rrr rcst��|||�dS)N)�super�__init__)�selfrrr �rrrr*7szAPIError.__init__)r(N)r�
__module__�__qualname__r!rrr*�
__classcell__rrr,rr6s��rN)�typingrrZuaclient.api.data_typesrrZuaclient.exceptionsrZuaclient.messagesrZ
uaclient.utilrZuaclient.versionr	�	Exceptionr'rrrrr�<module>s,

Youez - 2016 - github.com/yon3zu
LinuXploit