Reverting error deprecation message that caused error in travis build