aboutsummaryrefslogtreecommitdiff
path: root/src/wikiget/exceptions.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-10-13 12:24:13 -0700
committerCody Logan <cody@lokken.dev>2023-10-13 12:24:13 -0700
commit630541499a58f98c55d5cc372d21e745c106d250 (patch)
treef8dc0fe50d0d4a329ce8e64f497b89d84a25f7a2 /src/wikiget/exceptions.py
parent875748228e509e244c8f444114387f1a03cbb393 (diff)
downloadwikiget-630541499a58f98c55d5cc372d21e745c106d250.tar.gz
wikiget-630541499a58f98c55d5cc372d21e745c106d250.zip
Refactor parsing logic and revise exception handling
Diffstat (limited to 'src/wikiget/exceptions.py')
-rw-r--r--src/wikiget/exceptions.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/wikiget/exceptions.py b/src/wikiget/exceptions.py
new file mode 100644
index 0000000..94ed6b2
--- /dev/null
+++ b/src/wikiget/exceptions.py
@@ -0,0 +1,20 @@
+# wikiget - CLI tool for downloading files from Wikimedia sites
+# Copyright (C) 2023 Cody Logan
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# Wikiget is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Wikiget is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.
+
+
+class ParseError(Exception):
+ pass