a
i @ s d Z g dZddlZddlZddlZddlZddlZddlmZ ddl m
Z
ddlmZ ddl
mZ ddlmZmZ dd lmZ d
d Zdd
Zdd ZG dd dZG dd deZG dd dZdS )z>This module contains decorators for use with and without D-Bus)handle_exceptionsdbus_handle_exceptionsdbus_service_method N)
DBusException)
FirewallError)errors)log)FirewallDBusExceptionNotAuthorizedException)
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$tt t| W Y d }~n"d }~0 tyd t Y n0 d S N)r r debug1 traceback
format_excerror Exception exception)argskwargsr func >/usr/lib/python3.9/site-packages/firewall/server/decorators.py_impl0 s z handle_exceptions.