Skip to content

Commit

Permalink
Added warning for fields inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
4tikhonov committed Sep 6, 2024
1 parent aee5b3b commit 1c8b055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyDataverse/Croissant.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ def get_fields(self, g, field_list, SEARCH='PREDICATE', REPEATED=True):
try:
return fielddata[0]
except:
#return fielddata
c = 1
print(f"Error accessing the first element: {e}")
#return None # Continue with warning
#else:
#return ''
else:
Expand Down

0 comments on commit 1c8b055

Please sign in to comment.