question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'NoneType' object is not subscriptable

See original GitHub issue

Issue Description

I get a stack trace when I open client or create campaign

Reproduction Steps

  1. Start King Phisher
  2. 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:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
pechomcommented, Feb 20, 2018

Updated version works without error.

0reactions
zeroSteinercommented, Feb 20, 2018

Excellent, thanks for the update. I’ll go ahead and close this out.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found