-
-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Description
OS: Zorin OS (Ubuntu based Linux)
Example
import portalocker
from portalocker.exceptions import LockException
file = open('test.lock', 'w+', encoding='utf-8')
portalocker.lock(file, portalocker.LockFlags.NON_BLOCKING)Traceback
Traceback (most recent call last):
File "/home/maste/.local/lib/python3.10/site-packages/portalocker/portalocker.py", line 138, in lock
fcntl.flock(file_.fileno(), flags)
OSError: [Errno 22] Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/maste/Documents/GitHub/music-caster/src/test.py", line 5, in <module>
portalocker.lock(file, portalocker.LockFlags.NON_BLOCKING)
File "/home/maste/.local/lib/python3.10/site-packages/portalocker/portalocker.py", line 142, in lock
raise exceptions.LockException(exc_value, fh=file_)
portalocker.exceptions.LockException: [Errno 22] Invalid argumentMetadata
Metadata
Assignees
Labels
No labels