add error for missing pytz
This commit is contained in:
@@ -32,8 +32,14 @@ from xml.dom.minidom import Node
|
|||||||
|
|
||||||
import time
|
import time
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
try:
|
||||||
from pytz import timezone
|
from pytz import timezone
|
||||||
import pytz
|
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
|
import logging
|
||||||
# logging has been set up in fpdb.py or HUD_main.py, use their settings:
|
# logging has been set up in fpdb.py or HUD_main.py, use their settings:
|
||||||
|
|||||||
Reference in New Issue
Block a user