Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions data_pipeline_api/fdp_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,9 @@ def post_file_type(
"""
Internal wrapper function to return check if a file_type already exists and return it.
"""
if "extension" not in data and data["extension"]:
raise ValueError("error file_type name not specified")
if "extension" not in data:
if not data["extension"]:
raise ValueError("error file_type name not specified")
file_type_exists = get_entry(url= url,
endpoint= "file_type",
query= {"extension": data["extension"]},
Expand Down