403Webshell
Server IP : 172.67.214.6  /  Your IP : 216.73.216.73
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /opt/alt/python38/lib/python3.8/site-packages/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /opt/alt/python38/lib/python3.8/site-packages/__pycache__/NCSentry.cpython-38.pyc
U

e��g��@s*ddlZddlZddlZGdd�d�ZdS)�Nc@s&eZdZdZdZddd�Zdd�ZdS)	�NCSentrya
    Simple Wrapper

        sentry = NCSentry()

    After successfully inited class we can use Sentry debug system:

    Report to Sentry:

        SentryClient.capture_message("test")
        SentryClient.capture_exception(Exception("MyAwsomeString"))

    z0.19.2Nc	Cs�i|_|r|}ntj�tj�t��}tj�|d�|_|��t	|j��4}|�
�|_tj
|jf|j�|_tj|_tj|_W5QRXdS)Nz.sentry.conf)�sentry_args�os�path�dirname�realpath�__file__�joinZ	conf_path�construct_args�open�readZdsn�
sentry_sdkZinitZclientZcapture_message�capture_exception)�selfZ
config_dirZdir_pathZfh�r�9/opt/alt/python38/lib/python3.8/site-packages/NCSentry.py�__init__s
zNCSentry.__init__c
Cspz8ddl}|jjj�|j�}|�d�j|kr6d|jd<Wn2t	k
rj}zt
�d|���W5d}~XYnXdS)Nrz
sentry-sdkZtraces_sample_ratez Can't setup sentry default args )�
pkg_resourcesZexternZ	packaging�versionZVersion�!_NCSentry__conflict_under_versionZget_distributionZparsed_versionr�	Exception�warnings�warn)rrZ_conflict_under_version�errrrrr
*s
�
��zNCSentry.construct_args)N)�__name__�
__module__�__qualname__�__doc__rrr
rrrrrs
r)rr
rrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit