diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-21 22:06:33 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-21 22:06:33 -0400 |
commit | c15b1aca84362a8d4e56dda0602dea8a3d886028 (patch) | |
tree | e104d0cfbdbf7b90f4c25b183f37fee2dd7a2b5d | |
parent | 6f26e41983e0049d1bb7e1d473813b529338adcc (diff) | |
download | askbot-c15b1aca84362a8d4e56dda0602dea8a3d886028.tar.gz askbot-c15b1aca84362a8d4e56dda0602dea8a3d886028.tar.bz2 askbot-c15b1aca84362a8d4e56dda0602dea8a3d886028.zip |
another bug fix
-rw-r--r-- | askbot/lamson_handlers.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/askbot/lamson_handlers.py b/askbot/lamson_handlers.py index 2b223118..541a4708 100644 --- a/askbot/lamson_handlers.py +++ b/askbot/lamson_handlers.py @@ -102,8 +102,10 @@ def get_parts(message): part_type = get_part_type(part) if part_type == 'body': part_content = part.body - if part_type in ('attachment', 'inline'): + elif part_type in ('attachment', 'inline'): part_content = format_attachment(part) + else: + continue parts.append((part_type, part_content)) return parts |