We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32480e9 + 657d2a3 commit bf38749Copy full SHA for bf38749
labgrid/remote/client.py
@@ -302,7 +302,10 @@ def _get_places_by_resource(self, resource_path):
302
303
async def print_resources(self):
304
"""Print out the resources"""
305
- match = ResourceMatch.fromstr(self.args.match) if self.args.match else None
+ try:
306
+ match = ResourceMatch.fromstr(self.args.match) if self.args.match else None
307
+ except ValueError as e:
308
+ raise UserError(str(e)) from e
309
310
# filter self.resources according to the arguments
311
nested = lambda: defaultdict(nested)
0 commit comments