HEX
Server: LiteSpeed
System: Linux srv146.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: kodi1989 (1633)
PHP: 8.1.34
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/loguru/__pycache__/_error_interceptor.cpython-37.pyc
B

��fS�@s"ddlZddlZGdd�d�ZdS)�Nc@s,eZdZdd�Zdd�Zd	dd�dd�ZdS)
�ErrorInterceptorcCs||_||_dS)N)�
_should_catch�_handler_id)�self�should_catchZ
handler_id�r�J/opt/alt/python37/lib/python3.7/site-packages/loguru/_error_interceptor.py�__init__szErrorInterceptor.__init__cCs|jS)N)r)rrrrr
szErrorInterceptor.should_catchN)�	exceptioncCs�tjs
dS|dkr"t��\}}}nt|�||j}}}z�yltj�d|j�yt|�}Wntk
rrd}YnXtj�d|�t	�
|||dtj�tj�d�Wntk
r�YnXWd~~~XdS)Nz,--- Logging error in Loguru Handler #%d ---
z/!\ Unprintable record /!\zRecord was: %s
z--- End of logging error ---
)�sys�stderr�exc_info�type�
__traceback__�writer�str�	Exception�	traceback�print_exception�OSError)r�recordr
�type_�valueZ
traceback_Zrecord_reprrrr�print
s"

zErrorInterceptor.print)N)�__name__�
__module__�__qualname__r	rrrrrrrsr)rrrrrrr�<module>s