[
https://issues.apache.org/jira/browse/THRIFT-4370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16219995#comment-16219995
]
ASF GitHub Bot commented on THRIFT-4370:
----------------------------------------
Github user RobberPhex commented on a diff in the pull request:
https://github.com/apache/thrift/pull/1399#discussion_r147048687
--- Diff: lib/py/setup.py ---
@@ -22,7 +22,7 @@
import sys
try:
from setuptools import setup, Extension
-except:
+except Exception:
--- End diff --
I think we should use distutils.core, and setuptools is feedback,
And we should only process ImportError.
```py
try:
from distutils.core import setup, Extension
except ImportError:
from setuptools import setup, Extension
```
> Ubuntu Artful cppcheck and flake8 are more stringent and causing SCA build
> job failures
> ---------------------------------------------------------------------------------------
>
> Key: THRIFT-4370
> URL: https://issues.apache.org/jira/browse/THRIFT-4370
> Project: Thrift
> Issue Type: Bug
> Components: Build Process
> Affects Versions: 0.11.0
> Environment: docker ubuntu-artful
> Reporter: James E. King, III
> Assignee: James E. King, III
> Priority: Blocker
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)