Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moviemon crashes on broken symlinks #2

Open
jody-frankowski opened this issue Feb 22, 2016 · 0 comments
Open

Moviemon crashes on broken symlinks #2

jody-frankowski opened this issue Feb 22, 2016 · 0 comments

Comments

@jody-frankowski
Copy link

Moviemon doesn't handle well broken symlinks.

  File "/home/servo/.local/bin/moviemon", line 9, in <module>
    load_entry_point('moviemon==1.0.11', 'console_scripts', 'moviemon')()
  File "/home/servo/.local/lib/python3.5/site-packages/moviemon/moviemon.py", line 61, in main
    util(args)
  File "/home/servo/.local/lib/python3.5/site-packages/moviemon/moviemon.py", line 77, in util
    scan_dir(docopt_args["PATH"], dir_json)
  File "/home/servo/.local/lib/python3.5/site-packages/moviemon/moviemon.py", line 273, in scan_dir
    if os.path.getsize(path) > (25*1024*1024):
  File "/usr/lib/python3.5/genericpath.py", line 50, in getsize
    return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: 'broken_symlink'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant