From a1fec5013cee742714fac209cab434c3f3d38805 Mon Sep 17 00:00:00 2001 From: "Michael F. Lamb" Date: Tue, 20 Oct 2015 20:46:59 +0000 Subject: [PATCH] fix typos --- tildetown/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tildetown/stats.py b/tildetown/stats.py index 766e2f9..aee020b 100755 --- a/tildetown/stats.py +++ b/tildetown/stats.py @@ -107,7 +107,7 @@ def most_recent_within(path): """Return the most recent timestamp among all files within path, 3 levels deep. """ - return max(modified_times(path), maxdepth=3) + return max(modified_times(path, maxdepth=3)) def modified_times(path, maxdepth=None): """Walk the directories in path, generating timestamps for all @@ -119,7 +119,7 @@ def modified_times(path, maxdepth=None): for f in files: try: yield os.path.getmtime(os.path.join(root, f)) - except FileNotFoundError: + except (FileNotFoundError, PermissionError): pass def tdp_user(username, homedir):