Skip to content

Commit 49f8c93

Browse files
authored
Aktualisieren von keyhandler.py
1 parent a736c46 commit 49f8c93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/util/keyhandler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010

1111
def str_2_key(gen: str) -> bytes:
12+
if not gen:
13+
warnings.warn("No key supplied!")
1214
if (length := len(gen)) < 32:
1315
warnings.warn(f"Short length {length}")
1416
gen = gen.zfill(32)

0 commit comments

Comments
 (0)