Skip to content

Commit

Permalink
Debug a bug in decode part
Browse files Browse the repository at this point in the history
  • Loading branch information
Farbod-Parkhooi authored May 28, 2024
1 parent 804be3f commit 48a3b50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def decode(text):
# convert lets list's values to letters
if lets[-1] == "-": lets.pop()
else: pass
for i in range(len(lets)): out += num_letters[lets[i]]
for i in range(len(lets)):
try: out += num_letters[lets[i]]
except: out += lets[i]
return out
def encode(text):
out = """"""
Expand Down

0 comments on commit 48a3b50

Please sign in to comment.