summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-04-12 12:07:28 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-04-12 12:07:28 (GMT)
commit83d3fe15afecb530c00504bcd4c0bdc56ac40729 (patch)
treefb6c15c2a60b927c80df539008af1f6b5b1f6583
parentf9fadc9752d3a42333710524a2b3009c7ac0be53 (diff)
downloadmisc-fred-83d3fe15afecb530c00504bcd4c0bdc56ac40729.zip
misc-fred-83d3fe15afecb530c00504bcd4c0bdc56ac40729.tar.gz
misc-fred-83d3fe15afecb530c00504bcd4c0bdc56ac40729.tar.bz2
grand-lyon: handle form_objects not being availableHEADmaster
-rw-r--r--grandlyon/wcs-scripts/close_demands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/grandlyon/wcs-scripts/close_demands.py b/grandlyon/wcs-scripts/close_demands.py
index b4357f1..5e5e820 100644
--- a/grandlyon/wcs-scripts/close_demands.py
+++ b/grandlyon/wcs-scripts/close_demands.py
@@ -38,4 +38,6 @@ def get_close_demands(formdef, coords):
if __name__ == '__builtin__':
coords = get_coords(vars())
- result = get_close_demands(form_objects.formdef, coords)
+ result = ''
+ if 'form_objects' in vars():
+ result = get_close_demands(form_objects.formdef, coords)