diff --git a/pydrive/files.py b/pydrive/files.py index 1d40304..5ddfc9f 100644 --- a/pydrive/files.py +++ b/pydrive/files.py @@ -292,6 +292,10 @@ def Upload(self, param=None): self._FilesPatch(param=param) else: self._FilesInsert(param=param) + try: + self.content.close() + except AttributeError: + pass def Trash(self, param=None): """Move a file to the trash.