Skip to content

Commit f4db79a

Browse files
authored
options_left is a bool not an int (#23)
1 parent a74a442 commit f4db79a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

petsctools/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def __init__(self, parameters: dict,
287287

288288
# Decide whether to warn for unused options
289289
with self.inserted_options():
290-
if self.options_object.getInt("options_left", 0) > 0:
290+
if self.options_object.getBool("options_left", False):
291291
weakref.finalize(self, _warn_unused_options,
292292
self.to_delete, self._used_options,
293293
options_prefix=self.options_prefix)

0 commit comments

Comments
 (0)