Fix missing marker functions

In some ValueError exceptions, marker functions are missing.
So fix them.

TrivialFix
Change-Id: I7db3a2a484f834c801aae48732aeff48c5b2ae71
This commit is contained in:
Takashi NATSUME
2017-10-24 18:17:19 +09:00
parent 87ea686f9f
commit 9327f67343
3 changed files with 7 additions and 5 deletions

View File

@@ -296,7 +296,7 @@ def last_completed_audit_period(unit=None, before=None):
else:
rightnow = timeutils.utcnow()
if unit not in ('month', 'day', 'year', 'hour'):
raise ValueError('Time period must be hour, day, month or year')
raise ValueError(_('Time period must be hour, day, month or year'))
if unit == 'month':
if offset == 0:
offset = 1