Move exceptions to separate file
This commit is contained in:
parent
b74e999df1
commit
5ebc143947
@ -2,14 +2,7 @@ from urllib.request import urlopen
|
|||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
from urllib.error import HTTPError
|
from urllib.error import HTTPError
|
||||||
import re
|
import re
|
||||||
|
from .exceptions import InvalidURL, UnsupportedURL
|
||||||
|
|
||||||
class UnsupportedURL(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class InvalidURL(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class GitFiler:
|
class GitFiler:
|
||||||
|
6
gitfiler/exceptions.py
Normal file
6
gitfiler/exceptions.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
class UnsupportedURL(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class InvalidURL(Exception):
|
||||||
|
pass
|
Loading…
x
Reference in New Issue
Block a user