Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac 32209: additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbruin committed Feb 3, 2022
1 parent 608f2f4 commit d0c30c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/schemes/affine/affine_morphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def __call__(self, x, check=True):
"""
from sage.schemes.affine.affine_point import SchemeMorphism_point_affine
if check:
if not isinstance(x, SchemeMorphism_point_affine):
if not isinstance(x, SchemeMorphism_point_affine) or self.domain() != x.codomain():
try:
x = self.domain()(x)
except (TypeError, NotImplementedError):
Expand Down

0 comments on commit d0c30c0

Please sign in to comment.