Skip to content

Commit

Permalink
FEAT: Add exception type on except_F1 exception to decide which to se…
Browse files Browse the repository at this point in the history
…nd to sentry
  • Loading branch information
MarcCalvoC committed Dec 24, 2024
1 parent f9f209e commit a2e2bd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gestionatr/input/messages/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ def data_sollicitud(self):


class except_f1(Exception):
def __init__(self, name, value, values_dict=None):
def __init__(self, name, value, values_dict=None, exc_type='warning'):
self.name = name
self.value = value
self.values_dict = values_dict or {}
self.values_dict = values_dict or {}
self.exc_type = exc_type.decode('utf-8') if isinstance(exc_type, bytes) else exc_type

0 comments on commit a2e2bd3

Please sign in to comment.