Skip to content

Commit d58e4f1

Browse files
added lock file existence check
1 parent 3a8da97 commit d58e4f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/fixtures.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,10 @@ def delete_state_lock(
146146
storage_client = storage.Client()
147147
bucket = storage_client.bucket(bucket_name)
148148
blob = bucket.blob(blob_name)
149-
blob.delete()
150-
151-
print("Blob {} deleted.".format(blob_name))
149+
if blob.exists():
150+
blob.delete()
151+
print("Blob {} deleted.".format(blob_name))
152+
print("lock file does not exist")
152153

153154

154155
def change_branch(tb: TestbookNotebookClient, branch: str) -> None:

0 commit comments

Comments
 (0)