Mercurial > libervia-backend
comparison libervia/backend/core/main.py @ 4284:3a550e9a2b55
black reformatting
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 14 Jul 2024 16:47:45 +0200 |
parents | 9e63e02318ec |
children | 94e0968987cd |
comparison
equal
deleted
inserted
replaced
4283:23842a63ea00 | 4284:3a550e9a2b55 |
---|---|
509 log.warning( | 509 log.warning( |
510 f"Can't load plugin \"{plugin_info['name']}\", due to missing " | 510 f"Can't load plugin \"{plugin_info['name']}\", due to missing " |
511 f"dependency, ignoring it: {e}" | 511 f"dependency, ignoring it: {e}" |
512 ) | 512 ) |
513 else: | 513 else: |
514 log.exception( | 514 log.exception(f"Can't load plugin \"{plugin_info['name']}\", ignoring it") |
515 f"Can't load plugin \"{plugin_info['name']}\", ignoring it" | |
516 ) | |
517 if optional: | 515 if optional: |
518 return | 516 return |
519 raise ImportError("Error during initiation") | 517 raise ImportError("Error during initiation") |
520 if C.bool(plugin_info.get(C.PI_HANDLER, C.BOOL_FALSE)): | 518 if C.bool(plugin_info.get(C.PI_HANDLER, C.BOOL_FALSE)): |
521 self.plugins[import_name].is_handler = True | 519 self.plugins[import_name].is_handler = True |