Ver código fonte

Fix signature for self.config.decrypt(node, *nodes).

tags/v0.1^2
Ben Kurtovic 14 anos atrás
pai
commit
9000187693
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      earwigbot/commands/geolocate.py

+ 1
- 1
earwigbot/commands/geolocate.py Ver arquivo

@@ -33,7 +33,7 @@ class Geolocate(Command):
commands = ["geolocate", "locate", "geo", "ip"] commands = ["geolocate", "locate", "geo", "ip"]


def setup(self): def setup(self):
self.config.decrypt(self.config.commands, (self.name, "apiKey"))
self.config.decrypt(self.config.commands, self.name, "apiKey")
try: try:
self.key = self.config.commands[self.name]["apiKey"] self.key = self.config.commands[self.name]["apiKey"]
except KeyError: except KeyError:


Carregando…
Cancelar
Salvar