| Server IP : 195.114.193.97 / Your IP : 216.73.217.93 Web Server : LiteSpeed System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 User : sembi4241 ( 1126) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/firewall/server/__pycache__/ |
Upload File : |
o
bhAb� � @ s� d Z g d�ZddlZddlZddlZddlZddlZddlmZ ddl m
Z
ddlmZ ddl
mZ ddlmZmZ dd lmZ d
d� Zdd
� Zdd� ZG dd� d�ZG dd� de�ZG dd� d�ZdS )z>This module contains decorators for use with and without D-Bus)�handle_exceptions�dbus_handle_exceptions�dbus_service_method� N)�
DBusException)�
FirewallError)�errors)�log)�FirewallDBusException�NotAuthorizedException)�
uid_of_senderc s t �� �� fdd��}|S )zTDecorator to handle exceptions and log them. Used if not conneced
to D-Bus.
c
sj z� | i |��W S t y' } zt�t�� � t�|� W Y d }~d S d }~w ty4 t�� Y d S w �N)r r �debug1� traceback�
format_exc�error� Exception� exception)�args�kwargsr ��func� �</usr/lib/python3/dist-packages/firewall/server/decorators.py�_impl0 s ��z handle_exceptions.<locals>._impl)� functools�wraps�r r r r r r , s r c s&