aboutsummaryrefslogtreecommitdiff
path: root/src/philo/error.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/philo/error.py')
-rw-r--r--src/philo/error.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/philo/error.py b/src/philo/error.py
index 51c3f7b..96a0723 100644
--- a/src/philo/error.py
+++ b/src/philo/error.py
@@ -6,10 +6,13 @@
# By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/09/29 09:09:31 by cacharle #+# #+# #
-# Updated: 2020/09/29 11:14:08 by cacharle ### ########.fr #
+# Updated: 2020/10/05 13:51:40 by cacharle ### ########.fr #
# #
# ############################################################################ #
+import textwrap
+
+
class Philo(Exception):
pass
@@ -53,9 +56,10 @@ class Log(Philo):
@property
def full_summary(self):
- return """LOG ERROR: {}
-{}
-""".format(self._msg, '\n'.join([str(l) for l in self._logs]))
+ return textwrap.dedent("""\
+ LOG ERROR: {}
+ {}
+ """).format(self._msg, '\n'.join([str(log) for log in self._logs]))
@property
def summary(self):