aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikraman Choudhury <vikraman.choudhury@gmail.com>2011-05-12 04:20:29 +0530
committerVikraman Choudhury <vikraman.choudhury@gmail.com>2011-05-12 04:20:29 +0530
commit7f427fb2c0b03fbf5c78bd9fb9fd3a7d41ce3543 (patch)
tree43897446d122e28c7293d617909fd7246ee8f6b3
parentfix duplicate tuples in packages (diff)
downloadgentoostats-7f427fb2c0b03fbf5c78bd9fb9fd3a7d41ce3543.tar.gz
gentoostats-7f427fb2c0b03fbf5c78bd9fb9fd3a7d41ce3543.tar.bz2
gentoostats-7f427fb2c0b03fbf5c78bd9fb9fd3a7d41ce3543.zip
handle favicon with a 404 error
-rwxr-xr-xserver/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/main.py b/server/main.py
index 92e24ce..dbfd3ad 100755
--- a/server/main.py
+++ b/server/main.py
@@ -25,6 +25,8 @@ class index:
class stats:
def GET(self, uuid):
+ if uuid == 'favicon.ico':
+ return notfound()
hosts = db.select('hosts', vars=locals(), where="uuid=$uuid")
env = db.select('env', vars=locals(), where="uuid=$uuid")
return render.stats(uuid, hosts, env)