adopt dhomeier's suggested fix
adopt dhomeier's suggested fix

Co-authored-by: Derek Homeier <955e65eba8e58aa01aa289170b3c5b72f3c4064d@gwdg.de>
astropy/astropy,mhvk/astropy,StuartLittlefair/astropy,saimn/astropy,astropy/astropy,mhvk/astropy,pllim/astropy,larrybradley/astropy,StuartLittlefair/astropy,saimn/astropy,aleksandr-bakanov/astropy,saimn/astropy,pllim/astropy,saimn/astropy,astropy/astropy,mhvk/astropy,mhvk/astropy,saimn/astropy,StuartLittlefair/astropy,lpsinger/astropy,larrybradley/astropy,StuartLittlefair/astropy,aleksandr-bakanov/astropy,mhvk/astropy,aleksandr-bakanov/astropy,StuartLittlefair/astropy,astropy/astropy,aleksandr-bakanov/astropy,lpsinger/astropy,pllim/astropy,lpsinger/astropy,astropy/astropy,larrybradley/astropy,larrybradley/astropy,pllim/astropy,lpsinger/astropy,pllim/astropy,lpsinger/astropy,larrybradley/astropy