Skip to content

Commit 98cee00

Browse files
authored
Merge pull request #253 from Robin-Van-de-Merghel/robin-fix-python2-directories
hot-fix: Bad error handling on python2 directories
2 parents 00d70a8 + 093486a commit 98cee00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Pilot/pilotTools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def load_module_from_path(module_name, path_to_module):
8282
try:
8383
IsADirectoryError # pylint: disable=used-before-assignment
8484
except NameError:
85-
IsADirectoryError = OSError
85+
IsADirectoryError = IOError
8686

8787
# Timer 2.7 and < 3.3 versions issue where Timer is a function
8888
if sys.version_info.major == 2 or sys.version_info.major == 3 and sys.version_info.minor < 3:

0 commit comments

Comments
 (0)