remove extra logging from ttm.py
This commit is contained in:
parent
2a4bc5a9f6
commit
9ecd4c1674
3
ttm.py
3
ttm.py
|
@ -6,15 +6,12 @@ class Module(ModuleManager.BaseModule):
|
|||
def on_load(self):
|
||||
self.exports.add("shorturl-s-ttmsh", self._shorturl)
|
||||
def _shorturl(self, url):
|
||||
self.log.info("url to shorten:", url)
|
||||
if len(url) < 18:
|
||||
return None
|
||||
|
||||
page = utils.http.request(URL, method="POST",
|
||||
post_data={"shorten": url})
|
||||
|
||||
self.log.info("page:", page)
|
||||
|
||||
if page and page.data:
|
||||
return page.decode("utf8").rstrip("\n")
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue