Skip to content

Commit 582be93

Browse files
committed
Tweaked agenda presentation in order to not blow up on bad character encodings in charter file.
- Legacy-Id: 5938
1 parent 8675711 commit 582be93

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ietf/wgcharter/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,11 +711,10 @@ def charter_with_milestones_txt(request, name, rev):
711711

712712
try:
713713
with open(os.path.join(settings.CHARTER_PATH, filename), 'r') as f:
714-
charter_text = f.read()
714+
charter_text = unicode(f.read(), errors='ignore')
715715
except IOError:
716716
charter_text = "Error reading charter text %s" % filename
717717

718-
719718
milestones = historic_milestones_for_charter(charter, rev)
720719

721720
# wrap the output nicely

0 commit comments

Comments
 (0)