Update README.md

Gives deprecated warning without error parameter
Merge pull request #1972 from petard/patch-1

Update README.md