Skip to content

Commit 94dcab6

Browse files
committed
Add a module for custom exceptions
1 parent cdb5fe3 commit 94dcab6

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

oshminer/errors/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
# SPDX-FileCopyrightText: 2022 Pen-Yuan Hsing
4+
# SPDX-License-Identifier: AGPL-3.0-or-later

oshminer/errors/exceptions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
# SPDX-FileCopyrightText: 2022 Pen-Yuan Hsing
4+
# SPDX-License-Identifier: AGPL-3.0-or-later
5+
6+
class BadRepoError(Exception):
7+
pass

0 commit comments

Comments
 (0)