File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 20
20
IntersectWithPolygonLayerAlgorithm ,
21
21
)
22
22
from .extractPtsAlgorithm import ExtractODPtsAlgorithm , ExtractStopsAlgorithm
23
- from .privacyAttackAlgorithm import HomeWorkAttack
24
- from .gtfsAlgorithm import GtfsShapesAlgorithm , GtfsSegmentsAlgorithm
23
+
24
+ try : # skmob-based algs
25
+ from .privacyAttackAlgorithm import HomeWorkAttack
26
+ except ImportError :
27
+ pass
28
+
29
+ try : # gtfs_functions-based algs
30
+ from .gtfsAlgorithm import GtfsShapesAlgorithm , GtfsSegmentsAlgorithm
31
+ except ImportError :
32
+ pass
33
+
25
34
26
35
pluginPath = os .path .dirname (__file__ )
27
36
@@ -67,12 +76,12 @@ def getAlgs(self):
67
76
]
68
77
try : # skmob-based algs
69
78
algs .append (HomeWorkAttack ())
70
- except ImportError :
79
+ except NameError :
71
80
pass
72
81
try : # gtfs_functions-based algs
73
82
algs .append (GtfsShapesAlgorithm ())
74
83
algs .append (GtfsSegmentsAlgorithm ())
75
- except ImportError :
84
+ except NameError :
76
85
pass
77
86
return algs
78
87
You can’t perform that action at this time.
0 commit comments