Skip to content

Commit 0dfdb82

Browse files
committed
Don't try to fix an empty key
1 parent 2ac4f2c commit 0dfdb82

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

deepqt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__program__ = "DeepQt"
2-
__version__ = "1.1.5"
2+
__version__ = "1.1.6"
33
__description__ = "DeepL API front-end using Qt."

deepqt/driver_api_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def get_key(self):
2929
If the api is supposed to be PRO, remove :fx from the key and vice versa.
3030
"""
3131
key = self.lineEdit_api_key.text().strip()
32+
# Don't try to fix an empty key.
33+
if key == "":
34+
return key
35+
3236
if self.comboBox_api_type.currentIndex() == 1:
3337
key = re.sub(":fx$", "", key)
3438
else:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = deepqt
3-
version = 1.1.5
3+
version = 1.1.6
44
description = Harness the power of the DeepL API with this friendly user interface.
55
long_description = file: README.md
66
long_description_content_type = text/markdown; charset=UTF-8; variant=GFM

0 commit comments

Comments
 (0)