Time: Fix redundant error when pytz is not installed

This commit is contained in:
Valentin Lorentz 2012-04-05 04:28:57 +00:00
parent e6032c68bc
commit a40cf1c82f
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ class Time(callbacks.Plugin):
except ImportError:
irc.error(_('Python-tz is required by the command, but is not '
'installed on this computer.'))
return
try:
timezone = pytz.timezone(timezone)
except pytz.UnknownTimeZoneError: