Skip to content

Commit

Permalink
When classification is None, a TypeError is raised.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Dec 5, 2017
1 parent 287d079 commit a6ac1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/task/indexes.py
Expand Up @@ -98,7 +98,7 @@ def get_path(self, classification, lang, dest_type='page'):
# Interpret argument as page number
try:
page_number = int(classification)
except ValueError:
except (ValueError, TypeError):
pass
return [self.site.config['INDEX_PATH'](lang)], 'always', page_number

Expand Down

0 comments on commit a6ac1b3

Please sign in to comment.