Commit d08cc508 authored by Romain Courteaud's avatar Romain Courteaud

Prevent ImportError if pytz is not installed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24742 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9bc0caab
......@@ -2598,7 +2598,10 @@ def sleep(t=5):
def getCommonTimeZoneList():
""" Get common (country/capital(major cities) format) timezones list """
from pytz import common_timezones
try:
from pytz import common_timezones
except ImportError:
return []
return common_timezones
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment