From e278f7901fbb066e4459126b8cff21b1cbce3564 Mon Sep 17 00:00:00 2001 From: bigeagle Date: Wed, 19 Nov 2014 11:00:14 +0800 Subject: [PATCH] bug fix --- tunasync/loglimit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tunasync/loglimit.py b/tunasync/loglimit.py index 86a72a8..d6a09a6 100644 --- a/tunasync/loglimit.py +++ b/tunasync/loglimit.py @@ -43,7 +43,7 @@ class LogLimitHook(JobHook): # create a soft link if log_link != log_file: - if os.path.exists(log_link): + if os.path.lexists(log_link): try: sh.rm(log_link) except: