FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Removed idiotic special behavior of our exceptions · python-webuntis/python-webuntis@a850903 · GitHub

Commit a850903

Browse files
committed
Removed idiotic special behavior of our exceptions
Make them just behave like builtin exceptions.
1 parent 6c9377b commit a850903

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎webuntis/errors.py‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@
1010

1111
class Error(Exception):
1212
'''Superclass for all `python-webuntis`-specific errors, never gets raised
13-
directly. Positional arguments get joined with ``", "`` and get dumped into
14-
``self.msg``'''
15-
16-
def __init__(self, *args):
17-
Exception.__init__(self, *args)
18-
self.msg = ', '.join(args)
19-
13+
directly.'''
2014

2115
class RemoteError(Error, IOError):
2216
'''There was some kind of error while interacting with the server.'''

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL