diff --git a/freeradius/auth.py b/freeradius/auth.py index adc374b3..96cf0c03 100644 --- a/freeradius/auth.py +++ b/freeradius/auth.py @@ -82,7 +82,11 @@ def radius_event(f): # Beware: les valeurs scalaires sont entre guillemets # Ex: Calling-Station-Id: "une_adresse_mac" data[key] = value.replace('"', '') - return f(data) + try: + return f(data) + except Exception as e: + logger.error(repr(e) + ' on data ' + repr(auth_data)) + raise return new_f