Skip to content

Commit

Permalink
move exception
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomes committed Sep 12, 2022
1 parent e8d7df2 commit 63147d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion pyipma/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
"""Python library for http://api.ipma.pt."""
__version__ = "3.0.3"
__version__ = "3.0.4"

class IPMAException(Exception):
pass

4 changes: 1 addition & 3 deletions pyipma/auxiliar.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
from geopy import distance

from pyipma.api import IPMA_API
from pyipma import IPMAException

LOGGER = logging.getLogger(__name__) # pylint: disable=invalid-name

class IPMAException(Exception):
pass

class AuxiliarParser:
def __init__(self, api: IPMA_API, type="location"):
_TYPES = {"location": self.get_location, "type": self.get_type}
Expand Down

0 comments on commit 63147d5

Please sign in to comment.