]> git.donarmstrong.com Git - neurodebian.git/commitdiff
We don't want to continue when UDD doesn't talk.
authorMichael Hanke <michael.hanke@gmail.com>
Mon, 26 Apr 2010 18:33:12 +0000 (14:33 -0400)
committerMichael Hanke <michael.hanke@gmail.com>
Mon, 26 Apr 2010 18:33:12 +0000 (14:33 -0400)
neurodebian/dde.py

index d3898d0b6c10268eb74e70a5350c3cabb8d9b7c4..50eefedced5e36901bdc63e4c20a1d8f52ada8ae 100755 (executable)
@@ -414,8 +414,8 @@ def dde_get(url, fail=False):
         print "NOINFO:", url
         return False
     except json.ReadException, e:
-        print "NOCONTENT:", url, type(e)
-        return False
+        raise RuntimeError(
+                "No content in response -- DDE<->UDD connection probably down")
 
 
 def import_dde(cfg, db):