fixed exception

This commit is contained in:
Andreas Preikschat 2011-03-25 19:45:39 +01:00
parent a9cd8db787
commit 8aac2f7724
1 changed files with 5 additions and 2 deletions

View File

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