Skip to content

Commit

Permalink
fix: if creator_seq is an overly long string, don't print
Browse files Browse the repository at this point in the history
This fix was added due to @msdemlei comment in #492
  • Loading branch information
ManonMarchand committed Oct 2, 2023
1 parent 2f646af commit 64980f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyvo/registry/regtap.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,9 @@ def describe(self, verbose=False, width=78, file=None):
if verbose:
if self.source_value:
print(f"\nSource: {self.source_value}", file=file)
if self.creators:
# don't print creators if it's an overly long string
# not separated by semicolons
if self.creators and len(self.creators[0]) < width:
nmax_authors = 5
if len(self.creators) <= nmax_authors:
print(f"Authors: {', '.join(self.creators)}", file=file)
Expand Down

0 comments on commit 64980f1

Please sign in to comment.