diff --git a/app/service/app_svc.py b/app/service/app_svc.py index ec831a3f8..0bb056515 100644 --- a/app/service/app_svc.py +++ b/app/service/app_svc.py @@ -207,6 +207,9 @@ async def watch_ability_files(self): files = (os.path.join(rt, fle) for rt, _, f in os.walk(p.data_dir+'/abilities') for fle in f if time.time() - os.stat(os.path.join(rt, fle)).st_mtime < int(self.get_config('ability_refresh'))) for f in files: + if not f.endswith('.yml'): + self.log.debug('[%s] Skipping non YML file %s' % (p.name, f)) + continue self.log.debug('[%s] Reloading %s' % (p.name, f)) await self.get_service('data_svc').load_ability_file(filename=f, access=p.access) await asyncio.sleep(int(self.get_config('ability_refresh')))