From 587c8a68bbf89bdd279d5e1a1b94940916bc71e4 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Mon, 3 Aug 2026 20:28:54 +0100 Subject: [PATCH 1/2] :fire: Remove exceptions I stopped using them so they're not needed here any more. --- src/gophermap/__init__.py | 3 --- src/gophermap/exceptions.py | 28 ---------------------------- 2 files changed, 31 deletions(-) delete mode 100644 src/gophermap/exceptions.py diff --git a/src/gophermap/__init__.py b/src/gophermap/__init__.py index 3f81fb7..967250f 100644 --- a/src/gophermap/__init__.py +++ b/src/gophermap/__init__.py @@ -16,7 +16,6 @@ ############################################################################## # Local imports. -from .exceptions import GopherMapError, NoFields from .gopher_map import GopherMap from .item import GopherItem from .item_type import ItemType @@ -26,9 +25,7 @@ __all__ = [ "GopherItem", "GopherMap", - "GopherMapError", "ItemType", - "NoFields", ] ### __init__.py ends here diff --git a/src/gophermap/exceptions.py b/src/gophermap/exceptions.py deleted file mode 100644 index 5bc985e..0000000 --- a/src/gophermap/exceptions.py +++ /dev/null @@ -1,28 +0,0 @@ -"""Exceptions for the library. - -Note: - This module is now deprecated and will be removed in a future release. -""" - - -############################################################################## -class GopherMapError(Exception): - """Base exception for all errors raised by the GopherMap library. - - Note: - This exception class is now deprecated and will be removed in a - future release. - """ - - -############################################################################## -class NoFields(GopherMapError): - """Raised when a Gopher item has no fields. - - Note: - This exception class is now deprecated and will be removed in a - future release. - """ - - -### exceptions.py ends here From 8bd647f0dfe7adfec23e57cae6fab7ea7ad67883 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Mon, 3 Aug 2026 20:30:52 +0100 Subject: [PATCH 2/2] :books: Update the ChangeLog --- ChangeLog.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index c2050b7..3743479 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,12 @@ # GopherMap ChangeLog +## Unreleased + +**Released: WiP** + +- Removed the exceptions from the library. + ([#10](https://github.com/davep/gophermap/pull/10)) + ## v0.2.0 **Released: 2026-07-28**