'NoneType' object is not subscriptable
See original GitHub issueIssue Description
I get a stack trace when I open client or create campaign
Reproduction Steps
- Start King Phisher
- Create campaign
Environment Details
Host OS: LinuxMint 18.3 sylvia King Phisher Version: 1.10.0-beta (rev: 6f2ade795b6a) PostgreSQL: 9.5.11
Error Details / Stack Trace
File "/opt/king-phisher/king_phisher/client/tabs/mail.py", line 1041, in signal_kpc_campaign_set
self._campaign_load(new_campaign_id)
File "/opt/king-phisher/king_phisher/client/tabs/mail.py", line 863, in _campaign_load
company_name = self._get_graphql_campaign_company()
File "/opt/king-phisher/king_phisher/client/tabs/mail.py", line 881, in _get_graphql_campaign_company
return results['db']['campaign']['company']['name']
TypeError: 'NoneType' object is not subscriptable
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
TypeError: 'NoneType' object is not subscriptable
NoneType is the type of the None object which represents a lack of value, for example, a function that does not explicitly return...
Read more >Python Math - TypeError: 'NoneType' object is not subscriptable
The reason that lista gets set to None is because the return value of list.sort() is None ... it does not return a...
Read more >[Solved] TypeError: 'NoneType' Object is Not Subscriptable
The error, NoneType object is not subscriptable, means that you were trying to subscript a NoneType object. This resulted in a type error....
Read more >TypeError: 'NoneType' object is not subscriptable in Python
The Python "TypeError: 'NoneType' object is not subscriptable" occurs when we try to access a None value at a specific index. To solve...
Read more >Python TypeError: 'NoneType' object is not subscriptable
The “TypeError: 'NoneType' object is not subscriptable” error is common if you assign the result of a built-in list method like sort() ,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Updated version works without error.
Excellent, thanks for the update. I’ll go ahead and close this out.