From ae16cadcc243f98d12f18f853dbe7b86df1d492d Mon Sep 17 00:00:00 2001 From: Chris Church Date: Wed, 7 Dec 2016 23:50:58 -0500 Subject: [PATCH] Ignore exception in sitecustomize. --- awx/lib/sitecustomize.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/awx/lib/sitecustomize.py b/awx/lib/sitecustomize.py index be7c06102d..224840aae7 100644 --- a/awx/lib/sitecustomize.py +++ b/awx/lib/sitecustomize.py @@ -14,7 +14,10 @@ def argv_ready(argv): class argv_placeholder(object): def __del__(self): - argv_ready(sys.argv) + try: + argv_ready(sys.argv) + except: + pass if hasattr(sys, 'argv'):