title: my exceptions are getting ignored - can someone help me? discord.py rewrite
body: <p>I got a problem. When i tried to use the try/except statement, i failed. The exceptions are getting ignored. I can block a like i wish to, i can block myself, and the users who are in the Ownerid. the exceptions just get ignored. i dont know what i am doing wrong. using the if statement just failed too, i was getting an error there. so i tried with this one. i'll share my json file too. i would love to see any suggestions or code which can help me.</p>
  <pre><code>from discord.ext import has_permissions
  @commands.command(name='blockuser')
  @has_permissions(administrator=True)
  @commands.guild_only()
  async def blockuser(self, ctx, user: discord.User):
      with open('./bot_config/blocked_users.json', 'r+') as json_file:
          json_dict = json.load(json_file)
          blockedUser = json_dict[&quot;blockedUser&quot;]
      try:
          self.bot.blocked_users.append(user.id)
          json_dict[&quot;blockedUser&quot;].append(user.id)
          Cogs._json.write_json(json_dict, &quot;blocked_users&quot;)
          return
      except:
          if ctx.message.author.id in ctx.message.content:
              await ctx.send(f'You cannot block yourself, {ctx.author.mention}.')
              return
      try:
          self.bot.blocked_users.append(user.id)
          json_dict[&quot;blockedUser&quot;].append(user.id)
          Cogs._json.write_json(json_dict, &quot;blocked_users&quot;)
          return
      except:
          if user.id in blockedUser:
              await ctx.send(f'The user {user.mention} is already blocked.')
              return
      try:
          self.bot.blocked_users.append(user.id)
          json_dict[&quot;blockedUser&quot;].append(user.id)
          Cogs._json.write_json(json_dict, &quot;blocked_users&quot;)
          return
      except:
          if ownerid in ctx.message.content:
              await ctx.send(f&quot;The Botowner {botowner} can't be blocked.&quot;)
              return
      try:
          if user.id not in json_dict:
              self.bot.blocked_users.append(user.id)
              json_dict[&quot;blockedUser&quot;].append(user.id)
              Cogs._json.write_json(json_dict, &quot;blocked_users&quot;)
              await ctx.send(f'User was blocked: {user.mention}')
              return
      except:
          await ctx.send(&quot;Blocking the User failed. Type either in the id, name or mention the user.&quot;)
          return
  </code></pre>
  <p>And here is my json file. As you can see, the ID is there twice.</p>
  <pre><code>{
      &quot;blockedUser&quot;: [
          450949112230314014,
          450949112230314014
      ]
  }
  </code></pre>