From 6cece2c41ec473365fd4e728bc84450d087c476d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 18 Jul 2024 08:32:45 -0500 Subject: [PATCH] fix: avoid deprecated `AppProvider.load_object()` method --- rattail_corepos/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rattail_corepos/app.py b/rattail_corepos/app.py index 891eef3..c004c49 100644 --- a/rattail_corepos/app.py +++ b/rattail_corepos/app.py @@ -34,9 +34,9 @@ class CoreProvider(RattailProvider): def get_corepos_handler(self, **kwargs): if not hasattr(self, 'corepos_handler'): - spec = self.config.get('rattail', 'corepos.handler', + spec = self.config.get('rattail.corepos.handler', default='rattail_corepos.app:CoreHandler') - factory = self.load_object(spec) + factory = self.app.load_object(spec) self.corepos_handler = factory(self.config, **kwargs) return self.corepos_handler