Skip to content

Commit 2e7de0d

Browse files
committed
requirements: Remove catboost from required dependencies
Catch all exceptions at import attempt.
1 parent 52539b2 commit 2e7de0d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Orange/classification/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Pull members from modules to Orange.classification namespace
2-
# pylint: disable=wildcard-import
2+
# pylint: disable=wildcard-import,broad-except
33

44
from .base_classification import (ModelClassification as Model,
55
LearnerClassification as Learner,
@@ -23,7 +23,7 @@
2323
from .scoringsheet import *
2424
try:
2525
from .catgb import *
26-
except ModuleNotFoundError:
26+
except Exception:
2727
pass
2828
from .gb import *
2929
try:

Orange/regression/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from ..classification.simple_tree import *
1818
try:
1919
from .catgb import *
20-
except ModuleNotFoundError:
20+
except Exception:
2121
pass
2222
from .gb import *
2323
try:

requirements-core.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
baycomp>=1.0.2
22
bottleneck>=1.3.4
3-
catboost>=1.0.1
43
# Encoding detection
54
chardet>=3.0.2
65
httpx>=0.21.0

0 commit comments

Comments
 (0)