Added if statement to avoid UnboundLocalError (#1078)
Added if statement to avoid UnboundLocalError (#1078)

* Added if statement to avoid UnboundLocalError

Added if statement to avoid UnboundLocalError: local variable 'failed_consecutive' referenced before assignment

* Fixed dumb syntax

* Changed to global variable

creatingwake/PokemonGo-Map,creatingwake/PokemonGo-Map,creatingwake/PokemonGo-Map,creatingwake/PokemonGo-Map