From c97f358c1871f0c7b4332e810badd77b374079ec Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 14 Oct 2014 22:01:08 +0200 Subject: stupid fix --- imdb-lookup/imdblookup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'imdb-lookup/imdblookup.py') 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): -- cgit v1.2.1