mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Time: Fix redundant error when pytz is not installed
This commit is contained in:
parent
e6032c68bc
commit
a40cf1c82f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user