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
On a Linux/Ubuntu platform, if file is a symbolic link, magic.from_file(file) will throw a FileNotFoundError, instead of detecting that file is a link (inode/symlink).
So far, the only workaround I found is to embed the code containing the magic.from_file(file) line into a try/except block, and catch the exception.
The text was updated successfully, but these errors were encountered:
On a Linux/Ubuntu platform, if file is a symbolic link,
magic.from_file(
file)
will throw a FileNotFoundError, instead of detecting that file is a link (inode/symlink).So far, the only workaround I found is to embed the code containing the
magic.from_file
(file)
line into a try/except block, and catch the exception.The text was updated successfully, but these errors were encountered: