title: How can I use a try/except to check if an SQL query returns anything?
body: <p>I have written a small program which creates reports in a text file on the behaviours of students. However, I want my program to be able to break the -try- statement if no records are found. How do I do this?</p>
  
  <p>I am writing it in Python and using sqlite3.</p>