fixed exception

This commit is contained in:
Andreas Preikschat 2011-03-25 19:45:39 +01:00
parent a9cd8db787
commit 8aac2f7724

View File

@ -316,8 +316,11 @@ def check_directory_exists(dir):
Theme directory to make sure exists Theme directory to make sure exists
""" """
log.debug(u'check_directory_exists %s' % dir) log.debug(u'check_directory_exists %s' % dir)
if not os.path.exists(dir): try:
os.makedirs(dir) if not os.path.exists(dir):
os.makedirs(dir)
except IOError:
pass
from listwidgetwithdnd import ListWidgetWithDnD from listwidgetwithdnd import ListWidgetWithDnD
from displaytags import DisplayTags from displaytags import DisplayTags