summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dealconvert/formats/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dealconvert/formats/html.py b/dealconvert/formats/html.py
index efb16ff..6e5537e 100644
--- a/dealconvert/formats/html.py
+++ b/dealconvert/formats/html.py
@@ -184,7 +184,7 @@ class HTMLFormat(BinaryFormat):
def get_html_content(self, dealset):
deal_rows = []
event_name = dealset[0].event
- event_name = event_name.decode(chardet.detect(event_name)['encoding'])
+ event_name = event_name.decode(chardet.detect(event_name)['encoding'] or 'ascii')
while len(dealset) > 0:
deal_rows.append(dealset[0:self.deals_per_column])
dealset = dealset[self.deals_per_column:]