Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Suggested fixes by iCR, OpenRefactory, Inc. (#2938)

OpenRefactory, Inc42d595ac4fb6
diff --git a/manim/cli/render/commands.py b/manim/cli/render/commands.py
index 9c1fc83fb..eca009166 100644
--- a/manim/cli/render/commands.py
+++ b/manim/cli/render/commands.py
@@ -123,7 +123,7 @@ def render(
req_info = {}
try:
- req_info = requests.get(manim_info_url)
+ req_info = requests.get(manim_info_url, timeout=10)
req_info.raise_for_status()
stable = req_info.json()["info"]["version"]
diff --git a/manim/mobject/opengl/opengl_mobject.py b/manim/mobject/opengl/opengl_mobject.py
index 5e3cd2ecf..864326497 100644
--- a/manim/mobject/opengl/opengl_mobject.py
+++ b/manim/mobject/opengl/opengl_mobject.py
@@ -168,16 +168,16 @@ class OpenGLMobject:
return str(self.name)
def __sub__(self, other):
- raise NotImplementedError
+ return NotImplemented
def __isub__(self, other):
- raise NotImplementedError
+ return NotImplemented
def __add__(self, mobject):
- raise NotImplementedError
+ return NotImplemented
def __iadd__(self, mobject):
- raise NotImplementedError
+ return NotImplemented
@classmethod
def set_default(cls, **kwargs):