Skip to content

sentry_sdk raise FileNotFoundError:No such file or directory: 'nul' #2334

Closed
@asgter

Description

@asgter

How do you use Sentry?

Self-hosted/on-premise

Version

1.6.0

Steps to Reproduce

Operate System: Window 7

File"C:\Users\Administrator\AppData\local\python\lib\site-packages\setry_sdk\hub.py", line 105, in _init
client = Client(*args,**kwargs) # type: ignore
File"C:\Users\Administrator\AppData\local\python\lib\site-packages\setry_sdk\client.py",line 88, in init
self.options = get_options(*args,**kwargs) # type: Dict[str,Any]
File"C:\Users\Administrator\AppData\local\python\lib\site-packages\setry_sdk\client.py", line 68, in get_options
rv["release'] = get_default_release()
File"C:\Users\Administrator\AppData\local\python\lib\site-packages\setry_sdk\utils.py" line 65, in get_default_release
with open(os.path.devnull, "w+") as null:
FileNotFoundError: [Errno 2] No such file or directory: 'nul'

Expected Result

not raise error

Actual Result

raise Error

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions