diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-02-19 19:18:23 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-02-19 19:18:23 +0800 |
commit | 374d07bf8a2e56649a65ffc6f46c59fe58aec251 (patch) | |
tree | a82f9c3cfb7041b2d5ad265bc26270b3c515f4a1 | |
parent | fee526538937585ceef57c9e4000de0b00be1ce7 (diff) | |
download | chandra-acis-analysis-374d07bf8a2e56649a65ffc6f46c59fe58aec251.tar.bz2 |
acispy/manifest.py: Fix parsing procedure for 'parse_value_single()'
-rw-r--r-- | acispy/manifest.py | 5 |
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: |