Skip to content

Commit

Permalink
Fix authentication exception not declared
Browse files Browse the repository at this point in the history
Closes #12
  • Loading branch information
MayeulC committed Jul 21, 2018
1 parent 5b7f993 commit 34fb8f1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions humble_api/exceptions/humble_authentication_exception.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from .humble_response_exception import HumbleResponseException

__license__ = "MIT"


class HumbleAuthenticationException(HumbleResponseException):
"""
Authentication failed due to a rejected authentication cookie
"""

def __init__(self, *args, **kwargs):
"""
Parameterized constructor for the HumbleAuthenticationException.
:param list args: (optional) Extra positional args to pass to the request.
:param dict kwargs: (optional) Extra keyword args to pass to the request.
"""

super(HumbleAuthenticationException, self).__init__(*args, **kwargs)
1 change: 1 addition & 0 deletions humble_api/humble_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import requests
from .exceptions.humble_response_exception import HumbleResponseException
from .exceptions.humble_parse_exception import HumbleParseException
from .exceptions.humble_authentication_exception import HumbleAuthenticationException

__author__ = "Joel Pedraza"
__copyright__ = "Copyright 2014, Joel Pedraza"
Expand Down

0 comments on commit 34fb8f1

Please sign in to comment.