Skip to content

Commit

Permalink
Merge pull request #268 from gisce/add_exception_type_on_except_f1_ex…
Browse files Browse the repository at this point in the history
…ception

FEAT: Add exception type on except_F1 exception to decide which to send to Sentry
  • Loading branch information
eberloso authored Dec 24, 2024
2 parents 1daa62d + a2e2bd3 commit a51d7a0
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 a51d7a0

Please sign in to comment.