From a40cf1c82f04c79e60b71068b704dfec4911eca2 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 5 Apr 2012 04:28:57 +0000 Subject: [PATCH] Time: Fix redundant error when pytz is not installed --- plugins/Time/plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/Time/plugin.py b/plugins/Time/plugin.py index 33af76faa..f1a943a66 100644 --- a/plugins/Time/plugin.py +++ b/plugins/Time/plugin.py @@ -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: