remove unecessary exception in checkAndSetFlag
Merge branch 'fixRedisException'

fix the unecessary exception in checkAndSetFlag