Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="https://developer.teradata.com/tools/reference/teradata-python-module">Teradata Developer Exchange</a>.
Documentation for the Teradata Python Module is available on the <a href="https://downloads.teradata.com/tools/reference/teradata-python-module">Teradata Downloads site</a>.

UNIT TESTS
----------
Expand Down
2 changes: 1 addition & 1 deletion teradata/udaexec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down