pastebin: Fix crash on spam page
This commit is contained in:
parent
deb1249e65
commit
981af5e2a9
1 changed files with 3 additions and 1 deletions
|
|
@ -165,7 +165,9 @@ class PastebinBrowser(LoginBrowser):
|
|||
|
||||
def post_paste(self, paste, expiration=None):
|
||||
self.postpage.stay_or_go().post(paste, expiration=expiration)
|
||||
self.page.fill_paste(paste)
|
||||
# We cannot call fill_paste because we often have a captcha
|
||||
# anti-spam page, and do not detect it.
|
||||
paste.id = self.page.params['id']
|
||||
|
||||
def api_post_paste(self, paste, expiration=None):
|
||||
data = {'api_dev_key': self.api_key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue