aboutsummaryrefslogtreecommitdiffstats
path: root/acispy
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-02-19 19:18:23 +0800
committerAaron LI <aaronly.me@outlook.com>2017-02-19 19:18:23 +0800
commit374d07bf8a2e56649a65ffc6f46c59fe58aec251 (patch)
treea82f9c3cfb7041b2d5ad265bc26270b3c515f4a1 /acispy
parentfee526538937585ceef57c9e4000de0b00be1ce7 (diff)
downloadchandra-acis-analysis-374d07bf8a2e56649a65ffc6f46c59fe58aec251.tar.bz2
acispy/manifest.py: Fix parsing procedure for 'parse_value_single()'
Diffstat (limited to 'acispy')
-rw-r--r--acispy/manifest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/acispy/manifest.py b/acispy/manifest.py
index 79fbdd5..099c0f9 100644
--- a/acispy/manifest.py
+++ b/acispy/manifest.py
@@ -196,7 +196,12 @@ class Manifest:
"""
Try to parse the given value from string to integer, float, boolean
or string.
+
+ If the input value is not string, then just ignore the parse.
"""
+ if not isinstance(value, str):
+ return value
+
try:
v = int(value)
except ValueError: