Fix logarithmic retry code
Fix logarithmic retry code

I bumped into this while fixing something else. The retry code used
to have an off-by-one and I must have fixed it in a way that it's now
essentially an off-by-two.

The gist of it is that prior to this fix, it wouldn't go through all
the retry attempts--it'd skip the last one. With this fix it now
goes through all the retry attempts.

Also, I fixed some syntax since we want to use the:

    except Exception as exc:

syntax now.

MikkCZ/kitsune,philipp-sumo/kitsune,feer56/Kitsune1,brittanystoroz/kitsune,mozilla/kitsune,turtleloveshoes/kitsune,MziRintu/kitsune,safwanrahman/kitsune,mythmon/kitsune,rlr/kitsune,feer56/Kitsune2,orvi2014/kitsune,Osmose/kitsune,NewPresident1/kitsune,NewPresident1/kitsune,silentbob73/kitsune,Osmose/kitsune,rlr/kitsune,mozilla/kitsune,safwanrahman/linuxdesh,philipp-sumo/kitsune,anushbmx/kitsune,feer56/Kitsune2,H1ghT0p/kitsune,dbbhattacharya/kitsune,dbbhattacharya/kitsune,safwanrahman/linuxdesh,feer56/Kitsune1,turtleloveshoes/kitsune,NewPresident1/kitsune,silentbob73/kitsune,mythmon/kitsune,dbbhattacharya/kitsune,safwanrahman/kitsune,brittanystoroz/kitsune,NewPresident1/kitsune,iDTLabssl/kitsune,orvi2014/kitsune,feer56/Kitsune1,anushbmx/kitsune,asdofindia/kitsune,H1ghT0p/kitsune,rlr/kitsune,H1ghT0p/kitsune,MziRintu/kitsune,chirilo/kitsune,iDTLabssl/kitsune,Osmose/kitsune,chirilo/kitsune,mozilla/kitsune,MikkCZ/kitsune,safwanrahman/linuxdesh,mythmon/kitsune,dbbhattacharya/kitsune,rlr/kitsune,philipp-sumo/kitsune,anushbmx/kitsune,MziRintu/kitsune,silentbob73/kitsune,anushbmx/kitsune,YOTOV-LIMITED/kitsune,MikkCZ/kitsune,orvi2014/kitsune,turtleloveshoes/kitsune,brittanystoroz/kitsune,H1ghT0p/kitsune,safwanrahman/kitsune,asdofindia/kitsune,safwanrahman/kitsune,orvi2014/kitsune,feer56/Kitsune2,silentbob73/kitsune,Osmose/kitsune,asdofindia/kitsune,mozilla/kitsune,chirilo/kitsune,asdofindia/kitsune,MikkCZ/kitsune,iDTLabssl/kitsune,YOTOV-LIMITED/kitsune,feer56/Kitsune2,mythmon/kitsune,MziRintu/kitsune,brittanystoroz/kitsune,YOTOV-LIMITED/kitsune,turtleloveshoes/kitsune,chirilo/kitsune,YOTOV-LIMITED/kitsune,iDTLabssl/kitsune