title: why am i getting "AttributeError: 'NoneType' object has no attribute 'get' "
body: <p>im getting the error for the 10th line of code where i call for the entries string value, any help is appreciated and thanks in advance for the help. here is the entire error in case it helps:</p>
  <pre class="lang-none prettyprint-override"><code>  File &quot;c:\Users\(MY NAME)\OneDrive\Code\(MY NAME).py&quot;, line 38, in verify_license_key
      url = f&quot;https://api.gumroad.com/v2/licenses/verify?product_permalink=ewaqb&amp;license_key={user_license_key.get()}&amp;increment_uses_count=true&quot;
  AttributeError: 'NoneType' object has no attribute 'get'
  </code></pre>
  <pre><code>    def verify_license_key():
              verify_license_window.update()
              os.chdir(&quot;C:\ProgramData&quot;)
              with open(&quot;verify.txt&quot;, &quot;r&quot;) as f:
                  contents = f.read()
                  verify_license_window.update()
                  if contents != &quot;CYAmS$#Rr6fM$AKR9FS@#tXMetqNkzL3HCDYry!j&quot;:
                      verify_license_window.update()
                      f.close()
                      url = f&quot;https://api.gumroad.com/v2/licenses/verify?product_permalink=ewaqb&amp;license_key={user_license_key.get()}&amp;increment_uses_count=true&quot;
                      params = {}
                      r = requests.post(url = url, params = params)
                      result = r.json()
                      usesAmount = int(result['uses'])
                      verify_license_window.update()
                      
                      if usesAmount == 1:
                          with open(&quot;verify.txt&quot;, &quot;w&quot;) as f:
                              verify_license_window.update()
                              f.write(&quot;CYAmS$#Rr6fM$AKR9FS@#tXMetqNkzL3HCDYry!j&quot;)
                              f.close()
                              verify_license_window.update()
                              change_status_verify(&quot;Confirmed&quot;)
                              verify_license_window.after(1000)
                              verify_license_window.update()
                              change_status_verify(&quot;Closing in 1 Second&quot;)
                              verify_license_window.after(1000)
                              verify_license_window.update()
                              verify_license_window.destroy()
                  
                  elif contents == &quot;CYAmS$#Rr6fM$AKR9FS@#tXMetqNkzL3HCDYry!j&quot;:
                      f.close()
                      verify_license_window.update()
                      change_status_verify(&quot;Program Already Verified&quot;)
                      verify_license_window.after(1000)
                      verify_license_window.update()
                      change_status_verify(&quot;Closing In 1 Second&quot;)
                      verify_license_window.after(1000)
                      verify_license_window.destroy()
                      
      
                  
          verify_license_window = Tk()
          #settings
          verify_license_window.minsize(300,200)
          verify_license_window.maxsize(300,200)
          verify_license_window.title(&quot;Verify License Key&quot;)
      
          #button
          Button(verify_license_window, padx=12, pady=12, text=&quot;Confirm&quot;,
  command=verify_license_key).place(x=112, y=100)
      
          #label
          Label(verify_license_window, width=17 ,text=&quot;Enter License Key Here:&quot;).place(x=25,y=25)
      
          #entry
          user_license_key = Entry(verify_license_window, width=40).place(x=20,y=50)
          
      
          verify_license_window.mainloop()
  </code></pre>