Skip to content

Commit

Permalink
fix 4706 (#4710)
Browse files Browse the repository at this point in the history
  • Loading branch information
rawgni authored and mjmadsen committed Aug 25, 2016
1 parent a529e0e commit 720a5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def num_captures(self):

def uniq_caught(self):
# generate pokemon string 'Snorlax, Pikachu' from list of ids
return ', '.join([Pokemons.name_for(pok_id) for pok_id in self.uniq_pokemons_caught]) or ''
return ', '.join([Pokemons.name_for(pok_id) for pok_id in self.uniq_pokemons_caught]) if self.uniq_pokemons_caught else ''

def captures_per_hour(self):
"""
Expand Down

0 comments on commit 720a5f7

Please sign in to comment.