From 1008e02cceb981e9c42b94596f7dbc3ddd0cb282 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Mon, 26 Apr 2010 14:33:12 -0400 Subject: [PATCH] We don't want to continue when UDD doesn't talk. --- neurodebian/dde.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neurodebian/dde.py b/neurodebian/dde.py index d3898d0..50eefed 100755 --- a/neurodebian/dde.py +++ b/neurodebian/dde.py @@ -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): -- 2.39.2