# HG changeset patch # User Tero Marttila # Date 1264388494 -7200 # Node ID 1c317e0628a741033afed89722fea6234bfae254 # Parent 02e5b9b088810e450bc89699a407538f9785291b fail if DATA_ROOT is missing diff -r 02e5b9b08881 -r 1c317e0628a7 pngtile/wsgi.py --- a/pngtile/wsgi.py Mon Jan 25 04:59:38 2010 +0200 +++ b/pngtile/wsgi.py Mon Jan 25 05:01:34 2010 +0200 @@ -204,6 +204,10 @@ """ Returns the name and path requested """ + + # check DATA_ROOT exists.. + if not os.path.isdir(DATA_ROOT) : + raise exceptions.InternalServerError("Missing DATA_ROOT") # path to image image_name = req.path.lstrip('/')