Skip to content
Permalink
Browse files
When classification is None, a TypeError is raised.
  • Loading branch information
felixfontein committed Dec 5, 2017
1 parent 287d079 commit a6ac1b34c04e05bbbf9608315185d6cd2706dbbc
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/plugins/task/indexes.py
@@ -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

0 comments on commit a6ac1b3

Please sign in to comment.