Skip to content

Commit 493ac54

Browse files
committedDec 22, 2016
Removing usage of get since new keys are now there.
1 parent 30cf3cc commit 493ac54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎nikola/plugins/task/archive.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ def get_classification_friendly_name(self, classification, lang, only_last_compo
102102
return month
103103
else:
104104
year = classification[0]
105-
return self.site.MESSAGES[lang].get('{month} {year}', '{month} {year}').format(year=year, month=month)
105+
return self.site.MESSAGES[lang]['{month} {year}'].format(year=year, month=month)
106106
else:
107107
day = int(classification[2])
108108
if only_last_component:
109109
return str(day)
110110
else:
111111
year = classification[0]
112112
month = nikola.utils.LocaleBorg().get_month_name(int(classification[1]), lang)
113-
return self.site.MESSAGES[lang].get('{month} {day}, {year}', '{month} {day}, {year}').format(year=year, month=month, day=day)
113+
return self.site.MESSAGES[lang]['{month} {day}, {year}'].format(year=year, month=month, day=day)
114114

115115
def get_path(self, classification, lang, dest_type='page'):
116116
"""A path handler for the given classification."""

0 commit comments

Comments
 (0)
Please sign in to comment.