mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-02-16 22:44:09 -06:00
accessible_output2/outputs/auto.py: handle all possible exceptions when adding outputs to the list
This commit is contained in:
parent
17ccc30d9b
commit
607da14355
@ -9,8 +9,9 @@ class Auto(Output):
|
|||||||
self.outputs = []
|
self.outputs = []
|
||||||
for output in output_classes:
|
for output in output_classes:
|
||||||
try:
|
try:
|
||||||
self.outputs.append(output())
|
a=output()
|
||||||
except OutputError:
|
self.outputs.append(a)
|
||||||
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def get_first_available_output(self):
|
def get_first_available_output(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user