diff --git a/pyproject.toml b/pyproject.toml index 848226b..f3980d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "eccs" -version = "0.1.2" +version = "0.1.3" authors = [ { name="Markos Markakis", email="markakis@mit.edu"}, { name="Sylvia Ziyu Zhang", email="sylziyuz@mit.edu"}, diff --git a/src/eccs/eccs.py b/src/eccs/eccs.py index d67b2d6..53b5f3c 100644 --- a/src/eccs/eccs.py +++ b/src/eccs/eccs.py @@ -704,7 +704,8 @@ def suggest_best_single_adjustment_set_change( """ Printer.printv("Computing and suggesting best single adjustment set change") Printer.printv( - f"The current cache size is {len(self._cached_edit_options)} and the acceptance test returns {self._cached_acceptance_test()}" + f"""The current cache size is {len(self._cached_edit_options)} and the acceptance test """ + f"""returns {self._cached_acceptance_test() if self._cached_acceptance_test is not None else None}""" ) if len(self._cached_edit_options) > 0 and self._cached_acceptance_test():