Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6438e1d

Browse files
committed
Failing to import macfsn is not a fatal error.
1 parent cf03193 commit 6438e1d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Mac/Python/macmain.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ run_inspect(void)
384384
sts = PyRun_AnyFile(stdin, "<stdin>") != 0;
385385
return sts;
386386
}
387-
387+
388388
/*
389389
** Import the macfsn module, which will override the Standard File
390390
** calls in the macfs builtin module by Navigation Services versions,
@@ -405,6 +405,7 @@ PyMac_InstallNavServicesForSF(void)
405405
else {
406406
PySys_WriteStderr("use -v for traceback\n");
407407
}
408+
PyErr_Clear();
408409
}
409410
}
410411
}

0 commit comments

Comments
 (0)