Skip to content

Commit be12712

Browse files
Catch FileNotFound exceptions when loading the samples and ignore them
Some samples have `/path/to/...` placeholders, which will never load correctly (#274)
1 parent 4dd01ad commit be12712

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

clearpath_generator_robot/test/test_generator_launch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def test_samples(self):
5757
print(f'Unsupported accessory: {e}')
5858
except UnsupportedPlatformException as e:
5959
print(f'Unsupported platform: {e}')
60+
except FileNotFoundError as e:
61+
print(f'File not found: {e}')
6062
except Exception as e:
6163
errors.append("Sample '%s' failed to load: '%s'" % (
6264
sample,

clearpath_generator_robot/test/test_generator_param.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def test_samples(self):
6161
print(f'Unsupported accessory: {e}')
6262
except UnsupportedPlatformException as e:
6363
print(f'Unsupported platform: {e}')
64+
except FileNotFoundError as e:
65+
print(f'File not found: {e}')
6466
except Exception as e:
6567
errors.append("Sample '%s' failed to load: '%s'" % (
6668
sample,

0 commit comments

Comments
 (0)