Skip to content

Commit

Permalink
cleanup and move into a client class
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkflame72 committed Oct 4, 2020
1 parent 94d1283 commit 74ede1a
Show file tree
Hide file tree
Showing 7 changed files with 363 additions and 418 deletions.
9 changes: 2 additions & 7 deletions mcsrvstats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:copyright: (c) 2020 Darkflame72
:license: MIT, see LICENSE for more details.
"""
from .main import Client

__title__ = "mcsrvstats"
__author__ = "Leon Bowie"
Expand All @@ -23,10 +24,4 @@
except PackageNotFoundError: # pragma: no cover
__version__ = "unknown"


from collections import namedtuple


VersionInfo = namedtuple("VersionInfo", "major minor micro releaselevel serial")

version_info = VersionInfo(major=0, minor=1, micro=1, releaselevel="alpha", serial=0)
__all__ = ["Client"]
2 changes: 1 addition & 1 deletion mcsrvstats/exceptions/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class ApiError(Exception):
"""Raised when a error occurs on the api side"""
"""Raised when a error occurs on the api side."""

def __init__(self, error: str, source: str = "unknown source") -> None:
"""Error raised when api is not succesful.
Expand Down

0 comments on commit 74ede1a

Please sign in to comment.