Skip to content

Commit b2e1ad4

Browse files
Merge pull request #14 from halter/fix/halter-multiplug-instantiation
Fix/halter multiplug instantiation
2 parents 6f630fa + 027926e commit b2e1ad4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

openhtf/plugs/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,6 @@ def initialize_plugs(
261261
plug_instance: plug_type
262262
if plug_type in self._unmanaged_plugs:
263263
plug_instance = self._unmanaged_plugs[plug_type]
264-
try:
265-
plug_instance.setUp()
266-
except Exception: # pylint: disable=broad-except
267-
self.tear_down_plugs()
268-
raise
269264
else:
270265
# Create a logger for this plug. All plug loggers go under the 'plug'
271266
# sub-logger in the logger hierarchy.
@@ -304,7 +299,7 @@ def initialize_plugs(
304299
plug_logger.exception('Exception instantiating plug type %s', plug_type)
305300
self.tear_down_plugs()
306301
raise
307-
self.update_plug(plug_type, plug_instance)
302+
self.update_plug(plug_type, plug_instance)
308303
try:
309304
plug_instance.setUp()
310305
except Exception: # pylint: disable=broad-except

0 commit comments

Comments
 (0)