]> git.mxchange.org Git - fba.git/blobdiff - daemon.py
Continued:
[fba.git] / daemon.py
index 21c1fbff739f91207e209d36fdd4db63a5fb8e6e..674837fcf597075b63f422f78a68af48603a08f6 100755 (executable)
--- a/daemon.py
+++ b/daemon.py
@@ -328,6 +328,9 @@ def rss(request: Request, domain: str):
     database.cursor.execute("SELECT * FROM instances WHERE domain = ? LIMIT 1", [domain])
     domain_data = database.cursor.fetchone()
 
+    if domain_data is None:
+        raise HTTPException(status_code=404, detail=f"domain='{domain}' not found")
+
     # Format timestamps
     format = config.get("timestamp_format")
     instance = dict()