Commit d0763011 authored by mouadh's avatar mouadh

remove except

parent cd5a89dd
...@@ -45,11 +45,11 @@ if RUNNING_TOX: ...@@ -45,11 +45,11 @@ if RUNNING_TOX:
else: else:
home_directory = expanduser("~") home_directory = expanduser("~")
if not os.path.isdir(os.path.join(home_directory, 'olapy-data', 'cubes')): # if not os.path.isdir(os.path.join(home_directory, 'olapy-data', 'cubes')):
try: # try:
os.makedirs(os.path.join(home_directory, 'olapy-data', 'cubes')) os.makedirs(os.path.join(home_directory, 'olapy-data', 'cubes'))
zip_ref = zipfile.ZipFile('cubes_templates/cubes_temp.zip', 'r') zip_ref = zipfile.ZipFile('cubes_templates/cubes_temp.zip', 'r')
zip_ref.extractall(os.path.join(home_directory, 'olapy-data', 'cubes')) zip_ref.extractall(os.path.join(home_directory, 'olapy-data', 'cubes'))
zip_ref.close() zip_ref.close()
except: # except:
raise Exception('unable to create cubes directory !') # raise Exception('unable to create cubes directory !')
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