Python Forum
KeyError issue - unable to find root cause
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KeyError issue - unable to find root cause
#5
So i did print(req) and it's showing an invalid email address. Meaning the value for req is not a valid email address getting passed as 'emailid'. Is there a way to code in exceptions and ignore bad email addresses so the process doesn't bomb out?

hmmm - how do I make req a dictionary? Can someone assist?

Also, how do i show what 'emailid' is?

This doesn't work:
print(req['emailid'])
Thanks!
Reply


Messages In This Thread
RE: KeyError issue - unable to find root cause - by simms7400 - Aug-30-2018, 06:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  unable to find module in su mode? korenron 2 2,049 Jan-10-2021, 07:41 PM
Last Post: Gribouillis
  Cant find root cause of thread.lock error burlyboys 0 1,619 May-18-2020, 12:51 PM
Last Post: burlyboys
  Unable to find an existing module arbiel 2 5,129 Apr-11-2020, 07:12 PM
Last Post: arbiel
  unable to pass a input after changing the user from root to non root using python avinash 3 3,318 Apr-08-2019, 10:05 AM
Last Post: avinash
  How to ignore - ERROR: The system was unable to find the specified registry key or va asheru93 9 6,910 Feb-04-2019, 06:35 AM
Last Post: asheru93
  unable to find vcvarsall.bat nithya 1 4,105 Jan-03-2018, 08:25 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020