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
While trying to yt.load() a file without permission SDF._is_valid() yields PermissionError and breaks the detection loop. If we want to check permission in yt.load() itself that'd be fine, but no frontend should die cause of it.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/xarth/codes/xarthisius/yt/yt/_maintenance/deprecation.py", line 73, in inner
return func(*args, **kwargs)
File "/home/xarth/codes/xarthisius/yt/yt/loaders.py", line 112, in load
if cls._is_valid(fn, *args, **kwargs):
File "/home/xarth/codes/xarthisius/yt/yt/frontends/sdf/data_structures.py", line 186, in _is_valid
with open(sdf_header, encoding="ISO-8859-1") as f:
PermissionError: [Errno 13] Permission denied: '/tmp/hello.txt'
Expected outcome
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/xarth/codes/xarthisius/yt/yt/_maintenance/deprecation.py", line 73, in inner
return func(*args, **kwargs)
File "/home/xarth/codes/xarthisius/yt/yt/loaders.py", line 124, in load
raise YTUnidentifiedDataType(fn, *args, **kwargs)
yt.utilities.exceptions.YTUnidentifiedDataType: Could not determine input format from '/tmp/hello.txt'
or yt.load raising PermissionError
Version Information
Operating System: Ubuntu 20.04
Python Version: 3.9
yt version: last_yt3-7052-gaf4dbf6b1
The text was updated successfully, but these errors were encountered:
Bug report
Bug summary
While trying to
yt.load()
a file without permissionSDF._is_valid()
yieldsPermissionError
and breaks the detection loop. If we want to check permission inyt.load()
itself that'd be fine, but no frontend should die cause of it.Code for reproduction
Actual outcome
Expected outcome
or
yt.load
raisingPermissionError
Version Information
last_yt3-7052-gaf4dbf6b1
The text was updated successfully, but these errors were encountered: