Skip to content

Commit ea36bd8

Browse files
committed
fix: Fix message when auth key is not provided
1 parent 4db53d5 commit ea36bd8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
## [Unreleased]
9+
### Fixed
10+
* Fixed typo in error message when no auth key is provided.
11+
12+
813
## [1.16.0] - 2023-11-03
914
### Added
1015
* Add optional `context` parameter for text translation, that specifies
@@ -267,6 +272,7 @@ Version increased to avoid conflicts with old packages on PyPI.
267272
Initial version.
268273

269274

275+
[Unreleased]: https://github.com/DeepLcom/deepl-python/compare/v1.16.0...HEAD
270276
[1.16.0]: https://github.com/DeepLcom/deepl-python/compare/v1.15.0...v1.16.0
271277
[1.15.0]: https://github.com/DeepLcom/deepl-python/compare/v1.14.0...v1.15.0
272278
[1.14.0]: https://github.com/DeepLcom/deepl-python/compare/v1.13.0...v1.14.0

deepl/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def main(args=None, prog_name=None):
541541
if auth_key is None:
542542
raise Exception(
543543
f"Please provide authentication key via the {env_auth_key} "
544-
"environment variable or --auth_key argument or via "
544+
"environment variable or --auth-key argument or via "
545545
f"{keyring_key_name} in {keyring_key_folder} in keyring"
546546
)
547547

0 commit comments

Comments
 (0)