add error for missing pytz

This commit is contained in:
Eric Blade 2011-02-25 20:40:04 -05:00
parent 98347b21ad
commit 25734c1514

View File

@ -32,8 +32,14 @@ from xml.dom.minidom import Node
import time
import datetime
from pytz import timezone
import pytz
try:
from pytz import timezone
import pytz
except ImportError:
print _("ImportError: Unable to import PYTZ library. Please install PYTZ from http://pypi.python.org/pypi/pytz/")
raw_input(_("Press ENTER to continue."))
exit()
import logging
# logging has been set up in fpdb.py or HUD_main.py, use their settings: