From 52373d55b908af9793e86e9f2451506b3545e7a2 Mon Sep 17 00:00:00 2001 From: Zion Dials Date: Wed, 12 Jun 2024 14:18:57 -0400 Subject: [PATCH] Fixed 2 bugs --- repo.py | 2 +- requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/repo.py b/repo.py index f52e0b00..543854ed 100644 --- a/repo.py +++ b/repo.py @@ -85,7 +85,7 @@ def get_devices(self, base_path, vendors: list = None): def parse_files(self, files: list, slugs: list = None): deviceTypes = [] for file in files: - with open(file, 'r') as stream: + with open(file, 'r',encoding="utf8") as stream: try: data = yaml.safe_load(stream) except yaml.YAMLError as excep: diff --git a/requirements.txt b/requirements.txt index 30ac661c..11fe1f14 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ GitPython==3.1.32 pynetbox==7.0.1 python-dotenv==1.0.0 -PyYAML==6.0.1 \ No newline at end of file +PyYAML==6.0.1 +setuptools==70.0.0 \ No newline at end of file