Davidsamuel101 commited on
Commit
e2f7af9
·
1 Parent(s): 29bdb81
src/__pycache__/summarizer.cpython-38.pyc CHANGED
Binary files a/src/__pycache__/summarizer.cpython-38.pyc and b/src/__pycache__/summarizer.cpython-38.pyc differ
 
src/summarizer.py CHANGED
@@ -50,7 +50,10 @@ class Summarizer():
50
  tag = section[0]
51
  content = section[1]
52
  if tag.startswith('h'):
53
- mdFile.new_header(level=int(tag[1]), title=content)
 
 
 
54
  if tag == 'p':
55
  contents = content.split('<n>')
56
  for content in contents:
 
50
  tag = section[0]
51
  content = section[1]
52
  if tag.startswith('h'):
53
+ try:
54
+ mdFile.new_header(level=int(tag[1]), title=content)
55
+ except:
56
+ continue
57
  if tag == 'p':
58
  contents = content.split('<n>')
59
  for content in contents: