aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 8de9eed..503d289 100644
--- a/utils.py
+++ b/utils.py
@@ -92,5 +92,6 @@ def receive_string(binary):
binary_string = ''.join(binary)
try:
print(chr(int(binary_string, 2)))
+ return chr(int(binary_string, 2))
except ValueError:
print("Error: Invalid binary data")