diff tincan.py @ 8:9aaa91247b14 draft

Fix minor buglet.
author David Barts <n5jrn@me.com>
date Mon, 13 May 2019 16:27:05 -0700
parents 57ec65f527e9
children 75e375b1976a
line wrap: on
line diff
--- a/tincan.py	Mon May 13 16:00:11 2019 -0700
+++ b/tincan.py	Mon May 13 16:27:05 2019 -0700
@@ -403,6 +403,8 @@
             return os.stat(path).st_mtime
         except FileNotFoundError:
             return 0
+        except OSError as e:
+            raise TinCanError("{0}: {1}".format(path, e.strerror)) from e
 
     def _getclass(self):
         pypath = os.path.normpath(os.path.join(self._fsroot, *self._splitpath(self._python)))