diff --git a/src/utils/core.py b/src/utils/core.py index 1af9f3e..cc459a6 100644 --- a/src/utils/core.py +++ b/src/utils/core.py @@ -193,8 +193,11 @@ def load(variables): return keys def getLavalinkVersion(): - with open(path.join(path.dirname(path.dirname(__file__)), "lavalink/README.md"), "r") as file: - ver = findall(r'Version \*\*(\d+.+)\*\*', file.readlines()[2]) + try: + with open(path.join(path.dirname(path.dirname(__file__)), "lavalink/README.md"), "r") as file: + ver = findall(r'Version \*\*(\d+.+)\*\*', file.readlines()[2]) + except: + return None if len(ver) == 1: return ver[0] else: