mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-05-14 02:17:38 +02: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:
|
except ImportError:
|
||||||
irc.error(_('Python-tz is required by the command, but is not '
|
irc.error(_('Python-tz is required by the command, but is not '
|
||||||
'installed on this computer.'))
|
'installed on this computer.'))
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
timezone = pytz.timezone(timezone)
|
timezone = pytz.timezone(timezone)
|
||||||
except pytz.UnknownTimeZoneError:
|
except pytz.UnknownTimeZoneError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user