From 82275a3e1662f3bdb804bdb97740371cffbc9348 Mon Sep 17 00:00:00 2001 From: "albertb@google.com" Date: Fri, 13 Nov 2009 19:17:31 +0000 Subject: [PATCH] Don't crash if the cookie pipe doesn't exist. Review URL: http://chromereview.prom.corp.google.com/1187035 git-svn-id: svn://chrome-svn/chromeos/trunk@233 06c00378-0e64-4dae-be16-12b19f9950a1 --- test_cookie_pipe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_cookie_pipe.py b/test_cookie_pipe.py index 5a93e6ef2a..d3d2e4d575 100755 --- a/test_cookie_pipe.py +++ b/test_cookie_pipe.py @@ -83,7 +83,8 @@ def Authenticate(email, password): return cookies def WriteToPipe(pipe_path, data): - os.remove(pipe_path) + if os.path.exists(pipe_path): + os.remove(pipe_path) os.mkfifo(pipe_path) f = open(pipe_path, 'w') f.write(data)