Skip to content

Commit

Permalink
#405 Making sure the dir exists before deleting it
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei-Adnan Ismail committed Oct 7, 2015
1 parent 272d261 commit b5b20c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/proxysql_base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def setUpClass(cls):
cls._shutdown_docker_services()

try:
shutil.rmtree('/tmp/proxysql-tests/', onerror=cls.onerror)
if os.path.exists('/tmp/proxysql-tests'):
shutil.rmtree('/tmp/proxysql-tests/', onerror=cls.onerror)
except:
pass

Expand Down

0 comments on commit b5b20c5

Please sign in to comment.