From 862e18488ccf8bf4777d229b0a694d7c0c89ea98 Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Tue, 16 Mar 2021 15:08:59 +0300 Subject: [PATCH] gs: process etag when it is available (#5634) --- dvc/fs/gs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/fs/gs.py b/dvc/fs/gs.py index 782947e27..74f643732 100644 --- a/dvc/fs/gs.py +++ b/dvc/fs/gs.py @@ -31,7 +31,8 @@ class GSFileSystem(FSSpecWrapper): return login_info def _entry_hook(self, entry): - entry["etag"] = base64.b64decode(entry["etag"]).hex() + if "etag" in entry: + entry["etag"] = base64.b64decode(entry["etag"]).hex() return entry @wrap_prop(threading.Lock())