π OpenHands: AI-Driven Development
fix: handle binary data in GoogleCloudFileStore.write (#6145)
Robert Brennan8028e2c2ddbb
diff --git a/openhands/storage/google_cloud.py b/openhands/storage/google_cloud.pyindex bbd2da2730..da763363ab 100644--- a/openhands/storage/google_cloud.py+++ b/openhands/storage/google_cloud.py@@ -21,7 +21,8 @@ class GoogleCloudFileStore(FileStore):def write(self, path: str, contents: str | bytes) -> None:blob = self.bucket.blob(path)- with blob.open('w') as f:+ mode = 'wb' if isinstance(contents, bytes) else 'w'+ with blob.open(mode) as f:f.write(contents)def read(self, path: str) -> str: