Fix an error in the irrelevant code!

Fixes https://github.com/satwikkansal/wtfpython/issues/85
This commit is contained in:
Satwik Kansal 2018-06-19 00:25:34 +05:30
parent 5484680721
commit 07861a045d
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ with open("add_categories", "r") as f:
}
content.next()
except StopIteration:
pass
for idx, snip in enumerate(snippets):
snippets[idx]["category"] = snips_by_title[snip["title"]]["category"]