See https://github.com/roots/sage/issues/1398
Here’s the fix: https://github.com/roots/sage/commit/39caa2d391fb4d0fb0e8894517de259bcd6cc5ec