| Server IP : 185.143.233.130 / Your IP : 185.215.232.195 Web Server : LiteSpeed System : Linux jambul.7ho.st 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : renecafe ( 1327) PHP Version : 8.1.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3.9/site-packages/firewall/server/__pycache__/ |
Upload File : |
a
���g� � @ 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 yL } z$t�t�� � t�|� W Y d }~n"d }~0 tyd t�� Y n0 d S �N)r r �debug1� traceback�
format_exc�error� Exception� exception)�args�kwargsr ��func� �>/usr/lib/python3.9/site-packages/firewall/server/decorators.py�_impl0 s z handle_exceptions.<locals>._impl)� functools�wraps�r r r r r r , s r c s&