Skip to content

Commit

Permalink
Fix statsd tag merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Valsecchi committed Mar 13, 2019
1 parent 8aecd05 commit c2dd08c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion c2cwsgiutils/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ def _merge_tags(self, tags: TagType) -> TagType:
elif self._tags is None:
return tags
else:
return dict(self._tags).update(tags)
tmp = dict(self._tags)
tmp.update(tags)
return tmp

def _send(self, message: str, tags: TagType) -> None:
tags = self._merge_tags(tags)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages


VERSION = '2.19.0'
VERSION = '2.19.1'
HERE = os.path.abspath(os.path.dirname(__file__))
INSTALL_REQUIRES = [
pkg.split('==')[0]
Expand Down

0 comments on commit c2dd08c

Please sign in to comment.