diff options
author | Olivier Mehani <shtrom@ssji.net> | 2020-12-20 14:21:17 +1100 |
---|---|---|
committer | Olivier Mehani <shtrom@ssji.net> | 2020-12-20 14:21:52 +1100 |
commit | 91139a75c44f5c9df4c99e6851ce2350650928bd (patch) | |
tree | 6c00f8a4a07476e3129e8808e490c99c95581d66 /thetvdb_rename.py | |
parent | fe7020ffe89e34f57d2f8d680e727e6ef03593b6 (diff) |
Fix thetvdb_rename for python3
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
Diffstat (limited to 'thetvdb_rename.py')
-rwxr-xr-x | thetvdb_rename.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/thetvdb_rename.py b/thetvdb_rename.py index 2ec60ba..10cd2f2 100755 --- a/thetvdb_rename.py +++ b/thetvdb_rename.py @@ -2,7 +2,7 @@ import os, sys import logging -import tvdb_api +import tvdb_api # use tvnamer import re # Need python-levenshtein for faster sequence matching from fuzzywuzzy import fuzz @@ -93,7 +93,7 @@ for f in os.listdir("."): count += 1 try: os.link(f, d) - except OSError, e: + except OSError as e: logging.warning("%s: %s" % (d, e.strerror)) if count != len(s): |