Signal aichat fails to start. #24
Description
2023-10-12 21:27:53,103 bot: [INFO] Connected to socket (/var/run/signald/signald.sock)
2023-10-12 21:27:53,105 bot: [INFO] Handler registered ('')
2023-10-12 21:27:53,106 bot: [INFO] Bot started
2023-10-12 21:27:53,111 bot: [INFO] Connected to socket (/var/run/signald/signald.sock)
Traceback (most recent call last):
File "/home/abdalnablse/signal-aichat/signal_aichat.py", line 64, in main
await bot.start()
File "/home/abdalnablse/.local/lib/python3.10/site-packages/semaphore/bot.py", line 184, in start
self._receive_socket = await Socket(self._username,
File "/home/abdalnablse/.local/lib/python3.10/site-packages/semaphore/socket.py", line 67, in aenter
self.log.info(f"Bot attempted to subscribe to +********{self._username[-3:]}")
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/abdalnablse/signal-aichat/signal_aichat.py", line 69, in
anyio.run(main)
File "/home/abdalnablse/.local/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, backend_options)
File "/home/abdalnablse/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/abdalnablse/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "/home/abdalnablse/signal-aichat/signal_aichat.py", line 58, in main
async with Bot(
File "/home/abdalnablse/.local/lib/python3.10/site-packages/semaphore/bot.py", line 179, in aexit
await self._send_socket.aexit(*excinfo)
File "/home/abdalnablse/.local/lib/python3.10/site-packages/semaphore/socket.py", line 74, in aexit
self.log.info(f"Bot attempted to unsubscribe to +******{self._username[-3:]}")
TypeError: 'NoneType' object is not subscriptable