This is an automated email from the ASF dual-hosted git repository.
wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 3995eb3 ARROW-1768: [Python] Fix suppressed exception in
ParquetWriter.__del__
3995eb3 is described below
commit 3995eb3c1d94ab8fd151c32a5d1994a6b085deec
Author: Wes McKinney <[email protected]>
AuthorDate: Mon Nov 6 22:24:51 2017 -0500
ARROW-1768: [Python] Fix suppressed exception in ParquetWriter.__del__
This closes
[ARROW-1768](https://issues.apache.org/jira/projects/ARROW/issues/ARROW-1768).
Author: Wes McKinney <[email protected]>
Author: Licht-T <[email protected]>
Closes #1286 from Licht-T/fix-suppressed-exception-in-parquetwriter-del and
squashes the following commits:
ccd7344d [Wes McKinney] Use getattr to be robust to is_open attribute not
existing
4a42683d [Licht-T] Fix suppressed exception in ParquetWriter.__del__
---
python/pyarrow/parquet.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/pyarrow/parquet.py b/python/pyarrow/parquet.py
index 9dcc30c..9e0749b 100644
--- a/python/pyarrow/parquet.py
+++ b/python/pyarrow/parquet.py
@@ -260,7 +260,7 @@ schema : arrow Schema
self.is_open = True
def __del__(self):
- if self.is_open:
+ if getattr(self, 'is_open', False):
self.close()
def write_table(self, table, row_group_size=None):
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].