szha closed pull request #9739: fix FileNotFoundError error in diagnose.py URL: https://github.com/apache/incubator-mxnet/pull/9739
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/tools/diagnose.py b/tools/diagnose.py index adb621d1e4..0f878f918e 100644 --- a/tools/diagnose.py +++ b/tools/diagnose.py @@ -110,7 +110,7 @@ def check_mxnet(): print('Commit Hash :', ch) except ImportError: print('No MXNet installed.') - except FileNotFoundError: + except IOError: print('Hashtag not found. Not installed from pre-built package.') except Exception as e: import traceback ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services