Skip to content

Commit

Permalink
Improved create_classes_table_static() error message logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhwen committed Aug 22, 2024
1 parent f1511a8 commit f3d1142
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nvflare/fuel/utils/components_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ def create_classes_table_static():
file = os.path.join(os.path.dirname(__file__), COMPONENT_CLASS_FILE)
with open(file, "r") as f:
class_table = json.load(f)
except:
logger.warning("There's an error creating the classes table.")

except Exception as ex:
logger.warning(f"Exception occurred when loading class table from {file}: {ex}")
return class_table


Expand Down

0 comments on commit f3d1142

Please sign in to comment.