From 374d07bf8a2e56649a65ffc6f46c59fe58aec251 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 19 Feb 2017 19:18:23 +0800 Subject: acispy/manifest.py: Fix parsing procedure for 'parse_value_single()' --- acispy/manifest.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'acispy') 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: -- cgit v1.2.2