Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Errors on Startup "TypeError: Can't convert 'NoneType' object to str implicitly" #40

Closed
CorneliaXaos opened this issue Nov 30, 2016 · 1 comment

Comments

@CorneliaXaos
Copy link

So.. this might be because I don't have a device that's supported by the daemon yet (I have the Diamondback Chroma).. but I thought I'd report this error that happens on launch of the polychromatic-controller:

cornelia@Xaos-OryxP:~$ polychromatic-controller       
Using relative path for translations.
Traceback (most recent call last):
  File "/usr/bin/polychromatic-controller", line 125, in load_changed_cb
    app.page_loaded()
  File "/usr/bin/polychromatic-controller", line 445, in page_loaded
    self.refresh_device_list()
  File "/usr/bin/polychromatic-controller", line 1393, in refresh_device_list
    app.update_page('#' + selected_ui, "addClass", "active")
TypeError: Can't convert 'NoneType' object to str implicitly

I figure, even if the user doesn't have any daemon supported devices the application probably shouldn't error like this.. If anything, it should notify the user of missing devices, etc.

@lah7
Copy link
Member

lah7 commented Nov 30, 2016

Thanks for reporting. Indeed, there should be a "No devices found" screen, but some logic bugs were in the way. It's now fixed in the latest master. 👍

@lah7 lah7 closed this as completed in 26a5250 Nov 30, 2016
lah7 added a commit that referenced this issue Nov 30, 2016
And show this sooner instead of loading everything.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants