summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/utils.py b/lib/utils.py
index 2731f87..504d609 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -68,7 +68,10 @@ def write_archive(header):
cmt = 'archived value'
for kw in basic_wcs:
nkw = 'O'+kw
- header.update(nkw[:8], header[kw], comment=cmt)
+ try:
+ header.update(nkw[:8], header[kw], comment=cmt)
+ except KeyError: #ORIENTAT is not always present in headers
+ pass
header.update('WCSCDATE', fileutil.getLTime(), comment='Local time the WCS kw were archived')