View Single Post
  #17  
Old 12-08-2014, 03:18 AM
zugg zugg is offline
Junior Member
 
Join Date: Mar 2014
Posts: 10
zugg is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


Quote:
Originally Posted by flipper2011 View Post
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("''",))
I have this as well every few days.

I just use supervisord now.
Reply With Quote