diff --git a/README.md b/README.md
index 7751035..39d2074 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ The module is hosted on PyPi: https://pypi.python.org/pypi/teradata
DOCUMENTATION
-------------
-Documentation for the Teradata Python Module is available on the Teradata Developer Exchange.
+Documentation for the Teradata Python Module is available on the Teradata Downloads site.
UNIT TESTS
----------
diff --git a/teradata/udaexec.py b/teradata/udaexec.py
index d4d602d..d41b8f4 100644
--- a/teradata/udaexec.py
+++ b/teradata/udaexec.py
@@ -275,7 +275,7 @@ def _cleanupLogs(self, logDir, logRetention, logMsgs):
count = 0
for f in os.listdir(logDir):
f = os.path.join(logDir, f)
- if os.stat(f).st_mtime < cutoff:
+ if os.path.isfile(f) and os.stat(f).st_mtime < cutoff:
logMsgs.append(
(logging.DEBUG, "Removing log file: {}".format(f)))
os.remove(f)