Skip to content

Commit

Permalink
Merge 3e04269 into 2431098
Browse files Browse the repository at this point in the history
  • Loading branch information
road-cycling committed Dec 6, 2019
2 parents 2431098 + 3e04269 commit 6ffc1ab
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -37,7 +37,8 @@
u"int": int,
u"float": float,
u"double": float,
u"string": str,
u"string": lambda x: x.decode('utf-8') if isinstance(x, bytes) else str(x), # TODO. Specify character
# encoding method in enrichment
u"str": str,
u"long": int
}
Expand Down Expand Up @@ -503,6 +504,7 @@ def _process_metrics_or_dimensions(self, targets_type, metrics_group_map):
else:
try:
value = eval(parsed_expression, {'self': self})

except Exception as e:
self._logger.warn(u'Error on "%s" (%s) in namespace "%s" while processing '
u'for expression "%s": %s' %
Expand Down

0 comments on commit 6ffc1ab

Please sign in to comment.