Python Forum
Error Handling/No results from SQL Query
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error Handling/No results from SQL Query
#6
buran
Thank you (for your response and for fixing my tags again).

I made the change you suggested and now when I run it, I don't get any response nor do I get any error messages. It just does this line
PROBIDENTRY.delete(0,END)

FYI, I did put that line in the python code tags but it's not showing up that way here now. No idea why

I found my error and it's now working as expected. Thank you all SO MUCH for your help!

row = cursor.fetchone()
        if row:
            messagebox.showinfo("Owner found", "The ADMIN for this problem ID is:  " + row[0])
            
        else:
            messagebox.showinfo("Owner Not Found", "This problem ID was not found in the database!")
        cursor.close()
        PROBIDENTRY.delete(0,END)
Reply


Messages In This Thread
RE: Error Handling/No results from SQL Query - by JP_ROMANO - Jul-18-2018, 12:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Star python exception handling handling .... with traceback mg24 3 1,289 Nov-09-2022, 07:29 PM
Last Post: Gribouillis
  Help needed with a "for loop" + error handling tamiri 2 2,532 May-27-2022, 12:21 PM
Last Post: tamiri
  Mysql error message: Lost connection to MySQL server during query tomtom 6 16,141 Feb-09-2022, 09:55 AM
Last Post: ibreeden
  pymysql: insert query throws error wardancer84 12 4,612 Jan-28-2022, 06:48 AM
Last Post: wardancer84
  Query Syntax Error hammer 2 1,630 Jan-03-2022, 02:30 PM
Last Post: hammer
  Handling Python Fatal Error richajain1785 7 5,924 Oct-14-2021, 01:34 PM
Last Post: Tails86
  TypeError: sequence item 0: expected str instance, float found Error Query eddywinch82 1 5,137 Sep-04-2021, 09:16 PM
Last Post: eddywinch82
  Error using mariadb select query with form in python? shams 2 2,024 Jul-29-2021, 12:30 PM
Last Post: shams
  Error Handling JarredAwesome 5 2,947 Oct-17-2020, 12:41 AM
Last Post: JarredAwesome
  Compiling Python 3.8.5 source code results in build error Deepan 0 2,194 Sep-14-2020, 04:11 AM
Last Post: Deepan

Forum Jump:

User Panel Messages

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