chaoss / grimoirelab-elk

GNU General Public License v3.0
59 stars 121 forks source link

[enriched/mattermost] Fix 'useAutomaticTimezone' TypeError #992

Closed zhquan closed 3 years ago

zhquan commented 3 years ago

This code avoids the error TypeError: 'NoneType' object is not subscriptable when checking user_data['timezone']['useAutomaticTimezone'].

Signed-off-by: Quan Zhou quan@bitergia.com

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 1037208841


Files with Coverage Reduction New Missed Lines %
/home/runner/work/grimoirelab-elk/grimoirelab-elk/grimoire_elk/enriched/github.py 2 75.31%
/home/runner/work/grimoirelab-elk/grimoirelab-elk/grimoire_elk/enriched/mattermost.py 11 80.99%
<!-- Total: 13 -->
Totals Coverage Status
Change from base Build 1037205705: -0.01%
Covered Lines: 8665
Relevant Lines: 10536

💛 - Coveralls