diff options
-rw-r--r-- | imdb-lookup/imdblookup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imdb-lookup/imdblookup.py b/imdb-lookup/imdblookup.py index ce88183..9b30dcd 100644 --- a/imdb-lookup/imdblookup.py +++ b/imdb-lookup/imdblookup.py @@ -32,7 +32,7 @@ def read_key(): if os.path.exists(os.path.join(cfg_home, u"tmdbkey")): return open(os.path.join(cfg_home, u"tmdbkey"), "r").read().strip() if os.path.exists(os.path.join(os.path.expanduser(u"~"), ".tmdbkey")): - return open(os.path.exists(os.path.join(os.path.expanduser(u"~"), ".tmdbkey"))).read().strip() + return open(os.path.join(os.path.expanduser(u"~"), ".tmdbkey")).read().strip() raise Exception(u"No TheMovieDB Key defined. Set Env. var. TMDB_KEY or .tmpdbkey file") def read_filename(filename): |