Load .posted only if it is a registered module.

Avoids breaking of head.py if posted.py isn’t in modules
master
andreimarcu 2014-04-06 23:00:29 -04:00
parent a67113305c
commit 1b8e52b877
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,6 @@ import urllib.parse
import time
from html.entities import name2codepoint
import web
from modules.posted import check_posted
from tools import deprecated
@ -182,6 +181,8 @@ def gettitle(phenny, input, uri):
title = "[ {0} ]".format(title)
if "posted" in phenny.variables:
from modules.posted import check_posted
posted = check_posted(phenny, input, uri)
if posted: