We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8733a6 commit e3fa3b9Copy full SHA for e3fa3b9
gitprivacy/gitprivacy.py
@@ -48,7 +48,7 @@ def get_crypto(self) -> Optional[EncryptionProvider]:
48
49
def get_dateredacter(self) -> DateRedacter:
50
if self.mode == "reduce" and self.pattern == '':
51
- raise click.UsageError(click.wrap_text(
+ raise click.ClickException(click.wrap_text(
52
"Missing pattern configuration. Set a reduction pattern using\n" # noqa: E501
53
"\n"
54
f" git config {self.SECTION}.pattern <pattern>\n"
tests/test_gitprivacy.py
@@ -94,7 +94,7 @@ def test_redatenoconfig(self):
94
self.setUpRepo()
95
self.addCommit("a")
96
result = self.invoke('redate')
97
- self.assertEqual(result.exit_code, 2)
+ self.assertEqual(result.exit_code, 1)
98
99
def test_redate(self):
100
with self.runner.isolated_filesystem():
0 commit comments