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
raiseValueError("All parsers failed to parse", b, ex)
As an example, the following code:
import asyncio
import aioftp
async def main():
async with aioftp.Client.context('ftp.kymartian.ky.gov') as client:
print(await client.list())
asyncio.run(main())
will NOT fail and simply print [], which seems like an undesirable behavior. If the more informative ValueError exception was raised instead, it would have been much clearer that using the parse_list_line_custom argument was necessary.
Is there a specific reason for using very generic try/except here?
The text was updated successfully, but these errors were encountered:
Hello and thanks for maintaining this useful package!
I am experiencing an issue very similar to this one, where due to a server intricacy,
aioftp
is failing to list and parse the host's root directory.It took me a long while to figure this out, because the following line:
aioftp/aioftp/client.py
Line 786 in 2fe66a1
prevents the much more useful exception below from being raised:
aioftp/aioftp/client.py
Line 535 in 2fe66a1
As an example, the following code:
will NOT fail and simply print
[]
, which seems like an undesirable behavior. If the more informative ValueError exception was raised instead, it would have been much clearer that using theparse_list_line_custom
argument was necessary.Is there a specific reason for using very generic
try
/except
here?The text was updated successfully, but these errors were encountered: