MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / update_ragnarstatus

Method update_ragnarstatus

shared.py:1717–1727  ·  view source on GitHub ↗

Using getattr to obtain the reference of the attribute with the name stored in self.ragnarorch_status

(self)

Source from the content-addressed store, hash-verified

1715 self.font_viking_sm = self.load_font('Viking.TTF', viking_sm_size)
1716
1717 except Exception as e:
1718 logger.error(f"Error loading fonts: {e}")
1719 raise
1720
1721 def load_font(self, font_name, size):
1722 """Load a font."""
1723 if ImageFont is None:
1724 return None
1725 try:
1726 return ImageFont.truetype(os.path.join(self.fontdir, font_name), size)
1727 except Exception as e:
1728 logger.error(f"Error loading font {font_name}: {e}")
1729 raise
1730

Callers 4

_run_gc9a01Method · 0.80
_run_ssd1306Method · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 1

warningMethod · 0.80

Tested by

no test coverage detected