fix error when subscription is none add try catch
Merge pull request #28 from obigal/vardiff-bug-patch

fix error when subscription is none add try catch