Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
alexm committed Oct 4, 2021
1 parent 9f02f62 commit 410dd38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions filtres/nou.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ def obtenir_parametres_addicionals(self):
if self.msg.get_header(header_name):
header_values = self.msg.get_header(header_name).split(",")
for header_value in header_values:
if header_value and regex.match(header_value):
match_found = regex.match(header_value)
if header_value and match_found:
logger.info("Tinc parametres adicionals via %s"
% header_name)
defaults.update(item['defaults'])
defaults.update(item['defaults'] % match_found[1])

logger.info("Parametres addicionals: %s" % str(defaults))
return defaults
Expand Down

0 comments on commit 410dd38

Please sign in to comment.