Skip to content

Commit

Permalink
Whitespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Nov 4, 2024
1 parent a415767 commit d8d841e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/build123d/build_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ def __init__(
assert current_frame is not None
assert current_frame.f_back is not None
self._python_frame = current_frame.f_back.f_back
self._python_frame_code = self._python_frame.f_code
self.parent_frame = None
self.builder_parent = None
self.lasts: dict = {Vertex: [], Edge: [], Face: [], Solid: []}
self.workplanes_context = None
Expand Down Expand Up @@ -280,7 +282,10 @@ def __exit__(self, exception_type, exception_value, traceback):
"Transferring object(s) to %s", type(self.builder_parent).__name__
)
if self._obj is None and not sys.exc_info()[1]:
warnings.warn(f"{self._obj_name} is None - {self._tag} didn't create anything", stacklevel=2)
warnings.warn(
f"{self._obj_name} is None - {self._tag} didn't create anything",
stacklevel=2,
)
self.builder_parent._add_to_context(self._obj, mode=self.mode)

self.exit_workplanes = WorkplaneList._get_context().workplanes
Expand Down

0 comments on commit d8d841e

Please sign in to comment.