Move exceptions to separate file

This commit is contained in:
samedamci 2021-08-23 11:52:12 +02:00
parent b74e999df1
commit 5ebc143947
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894
2 changed files with 7 additions and 8 deletions

View File

@ -2,14 +2,7 @@ from urllib.request import urlopen
from urllib.parse import urlparse
from urllib.error import HTTPError
import re
class UnsupportedURL(Exception):
pass
class InvalidURL(Exception):
pass
from .exceptions import InvalidURL, UnsupportedURL
class GitFiler:

6
gitfiler/exceptions.py Normal file
View File

@ -0,0 +1,6 @@
class UnsupportedURL(Exception):
pass
class InvalidURL(Exception):
pass