[geneagrapher] 110/226: Fixed bug in code caught by failing test. The test was failing because the Math Genealogy Project modified an error message on their website.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:10:51 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository geneagrapher.
commit f649ae4941f38f74d8d5fdbfab22e28c9f8f2b70
Author: David Alber <alber.david at gmail.com>
Date: Sun Jul 12 00:55:07 2009 +0000
Fixed bug in code caught by failing test. The test was failing because the Math Genealogy Project modified an error message on their website.
---
geneagrapher/grab.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/geneagrapher/grab.py b/geneagrapher/grab.py
index d1f6a1f..5371410 100644
--- a/geneagrapher/grab.py
+++ b/geneagrapher/grab.py
@@ -45,7 +45,7 @@ class Grabber:
# Split the page string at newline characters.
psarray = self.pagestr.split('\n')
- if psarray[0].find("An error occurred in the forwarding block") > -1:
+ if psarray[0].find("You have specified an ID that does not exist in the database. Please back up and try again.") > -1:
# Then a bad URL (e.g., a bad record id) was given. Throw an exception.
msg = "Invalid page address for id %d" % (self.id)
raise ValueError(msg)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/geneagrapher.git
More information about the debian-science-commits
mailing list