add `warnings.simplefilter('always') after this line, and make sure there's one toward the top of the file, too. (see other examples of files where warnings are caught, and you will see this pattern)