Pārlūkot izejas kodu

turned the Authentication Exceptions to classes

Roland Haroutiounian 9 gadus atpakaļ
vecāks
revīzija
e14416470e
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      lodel/auth/exceptions.py

+ 2
- 2
lodel/auth/exceptions.py Parādīt failu

@@ -1,9 +1,9 @@
1 1
 from lodel import logger
2 2
 
3
-def AuthenticationError(Exception):
3
+class AuthenticationError(Exception):
4 4
     pass
5 5
 
6
-def AuthenticationFailure(Exception):
6
+class AuthenticationFailure(Exception):
7 7
     
8 8
     def __init__(self, client):
9 9
         msg = "%s : authentication failure" % client

Notiek ielāde…
Atcelt
Saglabāt