File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/lightning/fabric/utilities Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,10 @@ def _load_external_callbacks(group: str) -> List[Any]:
6161 callback_factory = factory .load ()
6262 callbacks_list : Union [List [Any ], Any ] = callback_factory ()
6363 callbacks_list = [callbacks_list ] if not isinstance (callbacks_list , list ) else callbacks_list
64- _log .info (
65- f"Adding { len (callbacks_list )} callbacks from entry point '{ factory .name } ':"
66- f" { ', ' .join (type (cb ).__name__ for cb in callbacks_list )} "
67- )
64+ if callbacks_list :
65+ _log .info (
66+ f"Adding { len (callbacks_list )} callbacks from entry point '{ factory .name } ':"
67+ f" { ', ' .join (type (cb ).__name__ for cb in callbacks_list )} "
68+ )
6869 external_callbacks .extend (callbacks_list )
6970 return external_callbacks
You can’t perform that action at this time.
0 commit comments