From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QKJCs-0007Vv-SN for garchives@archives.gentoo.org; Wed, 11 May 2011 23:52:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99F271C00F; Wed, 11 May 2011 23:52:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6C8BC1C00F for ; Wed, 11 May 2011 23:52:35 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BE7551B40A0 for ; Wed, 11 May 2011 23:52:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 3E39E80504 for ; Wed, 11 May 2011 23:52:34 +0000 (UTC) From: "Vikraman Choudhury" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vikraman Choudhury" Message-ID: <7f427fb2c0b03fbf5c78bd9fb9fd3a7d41ce3543.vikraman@gentoo> Subject: [gentoo-commits] proj/gentoostats:master commit in: server/ X-VCS-Repository: proj/gentoostats X-VCS-Files: server/main.py X-VCS-Directories: server/ X-VCS-Committer: vikraman X-VCS-Committer-Name: Vikraman Choudhury X-VCS-Revision: 7f427fb2c0b03fbf5c78bd9fb9fd3a7d41ce3543 Date: Wed, 11 May 2011 23:52:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 19ebd7b811d3b9389371c79b2d1ea77c commit: 7f427fb2c0b03fbf5c78bd9fb9fd3a7d41ce3543 Author: Vikraman Choudhury gmail com> AuthorDate: Wed May 11 22:50:29 2011 +0000 Commit: Vikraman Choudhury gmail com> CommitDate: Wed May 11 22:50:29 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoostats.g= it;a=3Dcommit;h=3D7f427fb2 handle favicon with a 404 error --- server/main.py | 2 ++ 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: =20 class stats: def GET(self, uuid): + if uuid =3D=3D 'favicon.ico': + return notfound() hosts =3D db.select('hosts', vars=3Dlocals(), where=3D"uuid=3D$uuid"= ) env =3D db.select('env', vars=3Dlocals(), where=3D"uuid=3D$uuid") return render.stats(uuid, hosts, env)