Instagram / Instagram/LibCST

Remove `with self.assertRaises(Exception):`

Open
#457 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Python
Stars
1.9k
Forks
229
PR merge metrics
No merged PRs in 30d

Description

`with self.assertRaises(Exception):` is used in a couple places for testing an exception is raised.
It can catch any Exception which can result in catching unexpected error.
Change to use a more specific exception or use `self.assertRaisesRegex` instead.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.