[Python-modules-commits] [python-pyld] 177/276: Check doc for none explicitly.
Wolfgang Borgert
debacle at moszumanska.debian.org
Wed Oct 8 23:48:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository python-pyld.
commit 96449481ea9c69ab8a24181e828bb7c7d9ec717c
Author: Dave Longley <dlongley at digitalbazaar.com>
Date: Mon Sep 9 23:34:45 2013 -0400
Check doc for none explicitly.
---
lib/pyld/jsonld.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 34c8b64..da4a9ba 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -574,7 +574,7 @@ class JsonLdProcessor:
}
try:
- if not remote_doc['document']:
+ if remote_doc['document'] is None:
raise JsonLdError(
'No remote document found at the given URL.',
'jsonld.NullRemoteDocument')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git
More information about the Python-modules-commits
mailing list