Explicitly check that events is not None:
Merge remote-tracking branch 'origin/master'