diff --git a/17-Chernobyl/Code/hashbrek.py b/17-Chernobyl/Code/hashbrek.py index 0353b99..1e69e5c 100644 --- a/17-Chernobyl/Code/hashbrek.py +++ b/17-Chernobyl/Code/hashbrek.py @@ -13,7 +13,7 @@ def hash(byts): while True: try: line = input("> ") - if (line[0] == '~'): + if (len(line) and line[0] == '~'): h = hash(bytes.fromhex(line[1:])); else: h = hash(line.encode())