Explorar el Código

Follow redirects when sending notices.

pull/10/head
Ben Kurtovic hace 11 años
padre
commit
3e1a26ed82
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      tasks/drn_clerkbot.py

+ 1
- 1
tasks/drn_clerkbot.py Ver fichero

@@ -646,7 +646,7 @@ class DRNClerkBot(Task):
target, template = notice.target, notice.template
log = u"Trying to notify [[{0}]] with '{1}'"
self.logger.debug(log.format(target, template))
page = site.get_page(target)
page = site.get_page(target, follow_redirects=True)
if page.namespace == constants.NS_USER_TALK:
user = site.get_user(target.split(":", 1)[1])
if not user.exists and not user.is_ip:


Cargando…
Cancelar
Guardar