Wrap subscription.js call with try/except

PEP8 updates