fix possible error with pp command
@@ -100,7 +100,8 @@ class Econ(commands.Cog):
embed.add_field(name='\uFEFF', value='\uFEFF')
embed.add_field(name=ctx.l.econ.pp.sword, value=(await self.db.fetch_sword(user.id)))
- embed.add_field(name=ctx.l.econ.pp.streak, value=db_user['vote_streak'])
+ vote_streak = db_user['vote_streak']
+ embed.add_field(name=ctx.l.econ.pp.streak, value=(vote_streak if vote_streak else 0))
voted_today = arrow.utcnow().shift(days=-1) > arrow.get(db_user['streak_time'])
embed.add_field(name=ctx.l.econ.pp.voted, value=voted_today*ctx.l.econ.pp.yep+ctx.l.econ.pp.nope*voted_today)
