[sysadmin-bin] It's rq.status_code :-)
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] It's rq.status_code :-)
- Date: Fri, 26 Jul 2013 16:59:24 +0000 (UTC)
commit 520306e425792ad1f3f010fb2df15a4697c68cc7
Author: Andrea Veri <av gnome org>
Date: Fri Jul 26 18:58:18 2013 +0200
It's rq.status_code :-)
git/post-receive-github | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/git/post-receive-github b/git/post-receive-github
index cb3eb0c..5c1ae96 100755
--- a/git/post-receive-github
+++ b/git/post-receive-github
@@ -105,8 +105,8 @@ def get_repo_settings (name):
doap_url = "https://git.gnome.org/browse/%s/plain/%s.doap" % (name, name)
rq = requests.get(doap_url)
- if rq != 200:
- raise Exception ("Could not get doap: %s\n%d\n%s" % (doap_url, rq.status_code, rq.text))
+ if rq.status_code != 200:
+ raise Exception ("Could not get doap: %s" % doap_url)
prj = et.fromstring (rq.text)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]