summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorMatthew Treinish <treinish@linux.vnet.ibm.com>2013-01-04 11:28:26 -0500
committerMatthew Treinish <treinish@linux.vnet.ibm.com>2013-01-11 16:21:38 -0500
commit89f91daa49c201ef12717dbd4876639581036bbe (patch)
treeb743ca4e5e83c928e9e3384b70b5e497b35f6a6e /nova/exception.py
parent80325d6897e9aadd0287e5e4e3fc3ada03448dac (diff)
downloadnova-89f91daa49c201ef12717dbd4876639581036bbe.tar.gz
nova-89f91daa49c201ef12717dbd4876639581036bbe.tar.xz
nova-89f91daa49c201ef12717dbd4876639581036bbe.zip
Handle directory conflicts with html output.
When calling html_report() if the output path already exists instead of rewriting the files in the directory html_report throws OSError: [Errno 17] File exists which leads to a 500 return to the api call. This commit avoids this issue by checking if the directory exists beforehand and returning a 400 with an error message instead. Change-Id: I061534c9ce9977692a7fc98187c4797b2ed60ab2
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions