NatTupper / dline

A feature-rich terminal discord client
GNU General Public License v3.0
62 stars 4 forks source link

Error after Initialization #4

Closed Nanodragon999 closed 6 years ago

Nanodragon999 commented 6 years ago

I got an issue after the first Initialization. I already got python3.6 installed as well as the other necessary library/import. Here the error ouput:

Checking for updates...
Already up to date!

Starting...
Task exception was never retrieved
future: <Task finished coro=<draw_screen() done, defined at /home/npower10/Discline/ui/ui.py:264> exception=AttributeError("'NoneType' object has no attribute 'name'",)>
Traceback (most recent call last):
  File "/home/npower10/Discline/ui/ui.py", line 275, in draw_screen
    await draw_top_bar()
  File "/home/npower10/Discline/ui/ui.py", line 292, in draw_top_bar
    serverName = gc.client.current_server.name
AttributeError: 'NoneType' object has no attribute 'name'
Task exception was never retrieved
                                  future: <Task finished coro=<key_input() done, defined at /home/npower10/Discline/input/input_handler.py:18> exception=AttributeError("'NoneType' object has no attribute 'name'",)>
                                               Traceback (most recent call last):
                                                                                   File "/home/npower10/Discline/input/input_handler.py", line 24, in key_input
                                                                                                                                                                   gc.ui.edit = gc.ui.messageEdit[gc.client.current_channel.id]
                                                        AttributeError: 'NoneType' object has no attribute 'id'

                                                                                                               During handling of the above exception, another exception occurred:

           Traceback (most recent call last):
                                               File "/home/npower10/Discline/input/input_handler.py", line 26, in key_input
                                                                                                                               init_channel_messageEdit(gc.client.current_channel)
             File "/home/npower10/Discline/input/input_handler.py", line 16, in init_channel_messageEdit
                                                                                                            gc.ui.messageEdit[channel.id] = MessageEdit(gc.ui.max_x, channel.name)
           AttributeError: 'NoneType' object has no attribute 'name'

I also made sure to use the latest version from your git.

NatTupper commented 6 years ago

Error handling is currently a bit flawed for setting the current server. I'm working to fix that. But to me, it looks like it can't find the server you specified in your config. Try checking to see if you're joined to whatever server you specified in default_server in config.

Nanodragon999 commented 6 years ago

So it can't auto-find them ? if i have 100 server,then that mean i need to specify all of them ?

Nanodragon999 commented 6 years ago

Thanks for the reply,i noticed it was already described in the instruction,so you can close this issue now :+1: