Skip to content

Commit

Permalink
Move assert back to correct place.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Jun 29, 2024
1 parent ee85e8f commit 03d5828
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datashuttle/utils/getters.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ def get_max_sub_or_ses_num_and_value_length(
the max_existing_num will be 2 and num_value_digits 4.
"""
assert isinstance(
default_num_value_digits, int
), "`default_num_value_digits` must be int`"

if len(all_folders) == 0:

assert isinstance(
default_num_value_digits, int
), "`default_num_value_digits` must be int`"

max_existing_num = 0

# Try and get the num digits from a name template, otherwise use default.
Expand Down

0 comments on commit 03d5828

Please sign in to comment.