You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently had some test failures caused by smart_open.smart_open. I'm pretty sure this is due to the pull requests that were accepted from Issue 94 and this line.
Here is the traceback from Jenkins:
# Common URI template [secret:key@][host[:port]@]bucket/object
try:
uri = parsed_uri.netloc + parsed_uri.path
# Separate authentication from URI if exist
if ':' in uri.split('@')[0]:
> auth, uri = uri.split('@', 1)
E ValueError: not enough values to unpack (expected 2, got 1)
In my instance this variable: uri = parsed_uri.netloc + parsed_uri.path
contains no @ symbol but does contain :
Thus there aren't enough values to unpack on the split:
uri = 'our-bucket/our/lengthy/file_path/with/a/date/in/it/2018:08:01'
if ":" in uri.split('@')[0]:
auth, uri = uri.split('@', 1)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-58-fc3bf5a8bea2> in <module>()
1 if ":" in uri.split('@')[0]:
----> 2 auth, uri = uri.split('@', 1)
ValueError: not enough values to unpack (expected 2, got 1)
Should I submit a PR?
I think all that might need to be done is:
if ":" in uri.split('@')[0]: ---> if ":" in uri.split('@')[0] and '@' in uri:
The text was updated successfully, but these errors were encountered:
Recently had some test failures caused by
smart_open.smart_open
. I'm pretty sure this is due to the pull requests that were accepted from Issue 94 and this line.Here is the traceback from Jenkins:
In my instance this variable:
uri = parsed_uri.netloc + parsed_uri.path
contains no
@
symbol but does contain:
Thus there aren't enough values to unpack on the split:
Should I submit a PR?
I think all that might need to be done is:
if ":" in uri.split('@')[0]:
--->if ":" in uri.split('@')[0] and '@' in uri:
The text was updated successfully, but these errors were encountered: