From 578b2376f947e1a23bd35a59ca9a47c06556a464 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Tue, 26 Mar 2024 17:07:10 -0700 Subject: [PATCH] Fixed display issues --- chainladder/core/display.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/chainladder/core/display.py b/chainladder/core/display.py index bed3abff..1cf34cd6 100644 --- a/chainladder/core/display.py +++ b/chainladder/core/display.py @@ -15,15 +15,15 @@ class TriangleDisplay: def __repr__(self): try: self.values - - if (self.values.shape[0], self.values.shape[1]) == (1, 1): - data = self._repr_format() - return data.to_string() - else: - return self._summary_frame().__repr__() - except: print("Triangle is empty") + return + + if (self.values.shape[0], self.values.shape[1]) == (1, 1): + data = self._repr_format() + return data.to_string() + else: + return self._summary_frame().__repr__() def _summary_frame(self): return pd.Series(