Update ticker.py

Added try .. except to catch http connection errors.
Note "/opt/bin/python2.7" in hash-bang header. 
Your server probably could use "/usr/bin/env python" instead.