Skip to content
Snippets Groups Projects
Commit af6ad5e2 authored by Lloyd Carothers's avatar Lloyd Carothers
Browse files

NRL.__new__ root is None logic more obvious.

parent f7d3da31
No related branches found
No related tags found
No related merge requests found
......@@ -40,11 +40,8 @@ class NRL(object):
"""
_index = 'index.txt'
def __new__(cls, root=None):
try:
if root is not None:
o = requests.utils.urlparse(root)
except AttributeError as e:
# root is None
o = None
if root is None or o.scheme == 'http':
# Create RemoteNRL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment