Disabled check for deprecation for this line since it is done in the if-condition already.
Merge pull request #8 from problame/master

Fixed deprecation warning