KOKINIO - MANAGER
Edit File: client.cpython-312.opt-1.pyc
� �W'j� � �� � d dl mZ d dlZd dlZd dlmZ d dlmZm Z m Z mZ d dlm Z mZ d dlmZ d dlmZmZmZ d dlmZ d d lmZ d dlZd dlZd dlZdad ad� Z G d� d � Z G d� d� Z G d� d� Z G d� d� Z G d� d� Z! G d� d� Z" G d� d� Z# G d� d� Z$ G d� d� Z% G d� d� Z& G d � d!� Z' G d"� d#� Z( G d$� d%� Z) G d&� d'� Z* G d(� d)� Z+ G d*� d+� Z,y),� )�GLibN)�config)�DEFAULT_ZONE_TARGET�DEFAULT_POLICY_TARGET�DEFAULT_POLICY_PRIORITY�DEFAULT_ZONE_PRIORITY)�dbus_to_python�dbus_to_python_args)� Rich_Rule)�normalize_ipset_entry�check_entry_overlaps_existing�check_for_overlapping_entries)�errors)� FirewallErrorFc �B � � t j � � � fd�� }|S )zDecorator to handle exceptionsc � �� d}|s �| i |��S y y # t j j $ ru}|j � }|j � }t s� d|v rt d� n4d|v rt |� n$d}|rt |� nt t |� � Y d }~nbd }~wt $ r%}t s� t t |� � Y d }~n6d }~wt $ r' t s� t t j � � Y nw xY wt sy |s����)NF�NotAuthorizedExceptionzorg.freedesktop.DBus.ErrorT)�dbus� exceptions� DBusException�get_dbus_message� get_dbus_name�exception_handler�strr � Exception� traceback� format_exc�not_authorized_loop)�args�kwargs� authorized�e�dbus_message� dbus_name�funcs ��4/usr/lib/python3.12/site-packages/firewall/client.py�_implz handle_exceptions.<locals>._impl) s� �� �� �� >��T�,�V�,�,�� �� �?�?�0�0� 2� �1�1�3���O�O�-� �(��+�y�8�%�&>�?�1�Y�>�%�l�3�!%�J�#�)�,�7�)�#�a�&�1��� � .�(��%�c�!�f�-�-��� >�(��%�i�&:�&:�&<�=� >�� '��= �s'