Commit b4cad597 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

get fits header

parent 70342181
......@@ -14,10 +14,9 @@ def get_header_value(key: str, headers, default_value = None):
ret_value = header[key]
if type(ret_value) == str:
return ret_value.strip()
return ret_value
if ret_value is None:
return default_value
else:
return ret_value
except Exception as e:
return default_value
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment