summaryrefslogtreecommitdiffstats
path: root/askbot/mail/__init__.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-30 11:48:56 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-30 11:48:56 -0400
commit393b50cd9f4036c7f9b17ef10f82f740cf3ce996 (patch)
tree3cc4a059dad80c0a1707b3c511ba566ab7c0b1dd /askbot/mail/__init__.py
parent226e869cc2c85495bd29e7b8fb74a71e830e4003 (diff)
downloadaskbot-393b50cd9f4036c7f9b17ef10f82f740cf3ce996.tar.gz
askbot-393b50cd9f4036c7f9b17ef10f82f740cf3ce996.tar.bz2
askbot-393b50cd9f4036c7f9b17ef10f82f740cf3ce996.zip
fixed trailing quote stripping in the response processing
Diffstat (limited to 'askbot/mail/__init__.py')
-rw-r--r--askbot/mail/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/mail/__init__.py b/askbot/mail/__init__.py
index 153bbd56..a0086a0a 100644
--- a/askbot/mail/__init__.py
+++ b/askbot/mail/__init__.py
@@ -264,7 +264,7 @@ def extract_user_signature(text, reply_code):
#strip off the leading quoted lines, there could be one or two
#also strip empty lines
- while tail[0].startswith('>') or tail[0].strip() == '':
+ while tail and (tail[0].startswith('>') or tail[0].strip() == ''):
tail.pop(0)
return '\n'.join(tail)