Skip to content

Commit 59b4b91

Browse files
committed
Update append test to handle ValueError
1 parent 63f1a44 commit 59b4b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/logformats_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def test_append_mode(self):
311311
# use append mode for second half
312312
try:
313313
writer = self.writer_constructor(self.test_file_name, append=True)
314-
except TypeError as e:
314+
except ValueError as e:
315315
# maybe "append" is not a formal parameter (this is the case for SqliteWriter)
316316
try:
317317
writer = self.writer_constructor(self.test_file_name)

0 commit comments

Comments
 (0)