diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2014-10-30 16:15:36 -0300 |
---|---|---|
committer | Patrick Maia <pmaia@thoughtworks.com> | 2014-10-30 16:15:36 -0300 |
commit | 51597c5a710c81b2ecc9666fadc1285ecbd847e2 (patch) | |
tree | 42185a5ba377b20b749b251041214a4128025bc6 /service/pixelated | |
parent | d2f278061b76950252b76cae0f2e64fc00e551af (diff) |
#30 - fixes a bug related to multipart mail with empty part_map
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/soledad_querier.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/soledad_querier.py b/service/pixelated/adapter/soledad_querier.py index aa49d3b4..e36f2e1a 100644 --- a/service/pixelated/adapter/soledad_querier.py +++ b/service/pixelated/adapter/soledad_querier.py @@ -136,7 +136,7 @@ class SoledadQuerier: parts = {'alternatives': [], 'attachments': []} if hdoc['multi']: - for part_key in hdoc['part_map'].keys(): + for part_key in hdoc.get('part_map', {}).keys(): self._extract_parts(hdoc['part_map'][part_key], parts) else: headers_dict = {elem[0]: elem[1] for elem in hdoc.get('headers', [])} |