diff --git a/export.py b/export.py
index 1ccc8efdc5550972f9c211c345368491001cce54..70d36a590f98c4ed0d6850dc6d5c929f282beea1 100644
--- a/export.py
+++ b/export.py
@@ -13,8 +13,7 @@ with sqlite3.connect('db/urls.db') as conn:
     cursor = conn.cursor()
     try: #Try making the database structure, if succeeded, exit, because there can't be any data.
         cursor.execute(create_table)
-        print("No data Found, exiting")
-        exit()
+        raise Exception('No database Found', "Can't find the database ==> No data to export")
     except sqlite3.OperationalError:
         pass