Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/semanticxo/metadatastore.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/semanticxo/metadatastore.py')
-rw-r--r--src/semanticxo/metadatastore.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/semanticxo/metadatastore.py b/src/semanticxo/metadatastore.py
index 0f2d55a..d105e69 100644
--- a/src/semanticxo/metadatastore.py
+++ b/src/semanticxo/metadatastore.py
@@ -50,8 +50,11 @@ class MetadataStore(object):
for key, value in props.items():
if isinstance(key, basestring) and isinstance(value, basestring):
key = OLPC_TERMS[key]
- value = Literal(value)
- graph.add((resource, key, value))
+ try:
+ value = Literal(value)
+ graph.add((resource, key, value))
+ except:
+ pass
# Save it
logging.debug('[MDS] save > %s' % graph.serialize())