Skip to content

Commit

Permalink
Do not use ellipsis in make_repr if parameter value is None
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybradley committed Feb 15, 2024
1 parent 8b75f48 commit fa208a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions photutils/utils/_repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ def make_repr(self, params, ellipsis=(), long=False):

cls_info = []
for param in params:
if param in ellipsis:
value = getattr(self, param)
if param in ellipsis and value is not None:
value = '...'
else:
value = getattr(self, param)
cls_info.append((param, value))

if long:
Expand Down

0 comments on commit fa208a9

Please sign in to comment.