Light gets bent by gravity.  However, it isn't much, unless you have a huge gravity source, like a quasar.  The earth's gravity can only bend light a tiny amount, the moon even less.  So, the moon's gravity won't bend the sun's light enough to bend around it and get to us.  

Here's why:

http://www.cnn.com/2017/08/10/health/how-to-safely-watch-the-eclipse/index.html

You can look at the eclipse ONLY if it's a total eclipse, and you can only look at it when it's totally eclipsed.  Any other time is dangerous.