diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-05 14:04:41 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-05 14:04:41 +0200 |
| commit | 6100010d6873845413aed22744470616992df603 (patch) | |
| tree | 5cefcd46851d06e0d9e9b09f578c13649582d075 /src/philo/error.py | |
| parent | 8a351c6d267c55445de7b7b40b1de3b16305bd02 (diff) | |
| download | philosophers_test-6100010d6873845413aed22744470616992df603.tar.gz philosophers_test-6100010d6873845413aed22744470616992df603.tar.bz2 philosophers_test-6100010d6873845413aed22744470616992df603.zip | |
Readded should be dead test
Diffstat (limited to 'src/philo/error.py')
| -rw-r--r-- | src/philo/error.py | 12 |
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): |
