Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

prefer NotImplementedError to a base Exception

leotrs7f1edc4c8431
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index edd22af14..d38e46cd0 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -995,8 +995,8 @@ class Mobject(Container):
The simplest mobject to be transformed to or from self.
Should by a point of the appropriate type
"""
- message = "get_point_mobject not implemented for {}"
- raise Exception(message.format(self.__class__.__name__))
+ msg = f"get_point_mobject not implemented for {self.__class__.__name__}"
+ raise NotImplementedError(msg)
def align_points(self, mobject):
count1 = self.get_num_points()