View Single Post
  #16  
Old 12-07-2014, 09:38 PM
flipper2011 flipper2011 is offline
Junior Member
 
Join Date: Sep 2011
Posts: 17
flipper2011 is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


There is a problem that started occurring today, this happened twice.. Is there a way to trap this so the script retires? Not really a Linux guru.. it defeats the "set it and forget it" because when it crashes/errors out it STOPS. The following is the error that occurs and the output file info

Error itself

Code:
oot@debian:~/Apps/Captureb# python main.py
Traceback (most recent call last):
  File "main.py", line 34, in <module>
    client = connection.Connection()
  File "/root/Apps/Captureb/connection.py", line 40, in Connection
    page_source = 'Page Source for ' + URL + '\n' + r.text
UnboundLocalError: local variable 'r' referenced before assignment
root@debian:~/Apps/Captureb#
OUTPUT.LOG follows
Code:
07/12/2014 11:22:16 PM INFO:[Sleep] Waiting for next check (80 seconds)
07/12/2014 11:23:36 PM INFO:Connecting to https://chaturbate.com/auth/login/
07/12/2014 11:23:36 PM INFO:Starting new HTTPS connection (1): chaturbate.com
07/12/2014 11:24:03 PM ERROR:Some error during posting to https://chaturbate.com/auth/login/
07/12/2014 11:24:03 PM ERROR:('Connection aborted.', BadStatusLine("''",))
Reply With Quote