aboutsummaryrefslogtreecommitdiff
path: root/elogv
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2018-05-14 17:12:30 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2018-05-14 17:12:30 +0200
commit64016fd1ac000cb61bbf1fd50da192ce7125bdf3 (patch)
tree3b277786a64283f645420abbcd43515962ab06c9 /elogv
parentMake code compatible with python 3 (diff)
downloadelogv-64016fd1ac000cb61bbf1fd50da192ce7125bdf3.tar.gz
elogv-64016fd1ac000cb61bbf1fd50da192ce7125bdf3.tar.bz2
elogv-64016fd1ac000cb61bbf1fd50da192ce7125bdf3.zip
Drop unneeded __init__ for exception classes
Diffstat (limited to 'elogv')
-rwxr-xr-xelogv11
1 files changed, 5 insertions, 6 deletions
diff --git a/elogv b/elogv
index 93f1906..32cb1db 100755
--- a/elogv
+++ b/elogv
@@ -145,16 +145,15 @@ date_format = "%x"
# Exceptions classes
class TermTooSmall(Exception):
- def __init__(self):
- pass
+ """Terminal too small."""
+
class NoLogFiles(Exception):
- def __init__(self):
- pass
+ """No log files."""
+
class CannotOpenElogdir(Exception):
- def __init__(self):
- pass
+ """Directory could not be opened."""
def handle_sig_tstp(signum, frame):