Skip to content

Commit

Permalink
if to elif
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownUser95 authored and anafvana committed Jul 27, 2024
1 parent f0459f0 commit 8fff8df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pickpack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __post_init__(self):
self.output_format = OutputMode[self.output_format]
except KeyError:
raise ValueError('Invalid output_format property. If it is a str, it must be either "nodeindex", "nameindex", "nodeonly", or "nameonly"')
if not isinstance(self.output_format, OutputMode):
elif not isinstance(self.output_format, OutputMode):
raise TypeError('Invalid output_format property type. Must be OutputMode or str (nodeindex, nameindex, nodeonly, or nameonly)')

if not isinstance(self.indicator_parentheses_design, tuple) or len(self.indicator_parentheses_design) != 2 or not isinstance(self.indicator_parentheses_design[0], str) or not isinstance(self.indicator_parentheses_design[1], str):
Expand Down

0 comments on commit 8fff8df

Please sign in to comment.