Skip to content

Commit f7782d5

Browse files
author
Silver Valdvee
committed
Fix CI
1 parent 4234fa8 commit f7782d5

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

build_exe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
electron_folder = [
4343
x for x in Path("electronbinaries").iterdir() if x.name.startswith("electron") and "linux" in x.name
4444
][0]
45-
if(electron_folder.name.endswith(".zip")):
45+
if electron_folder.name.endswith(".zip"):
4646
shutil.unpack_archive(electron_folder, electron_folder.name.replace(".zip", ""))
4747
electron_folder = Path(electron_folder.name.replace(".zip", ""))
4848
# Check if it is a zip file instead, if it is a zip file, unpack the zip file, delete the zip file and
@@ -56,7 +56,7 @@
5656
electron_folder = [
5757
x for x in Path("electronbinaries").iterdir() if x.name.startswith("electron") and "win32" in x.name
5858
][0]
59-
if(electron_folder.name.endswith(".zip")):
59+
if electron_folder.name.endswith(".zip"):
6060
shutil.unpack_archive(electron_folder, electron_folder.name.replace(".zip", ""))
6161
electron_folder = Path(electron_folder.name.replace(".zip", ""))
6262
# Copy the contents of the electron folder into the .electron folder

yukon/services/mydronecan/file_server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def _read(self, e: uavcan.protocol.file.Read) -> uavcan.protocol.file.Read.Respo
8585
# Seek to the start and read the whole file to get the length
8686
self.open_file_handle.seek(0)
8787
self.file_length = len(self.open_file_handle.read())
88-
logger.warning("Firmware update completion percentage: {0:.2f}%".format((e.request.offset / self.file_length) * 100))
88+
logger.warning(
89+
"Firmware update completion percentage: {0:.2f}%".format((e.request.offset / self.file_length) * 100)
90+
)
8991
try:
9092
if self.open_file_handle is None:
9193
self.open_file_handle = open(self.file_path, "rb")

0 commit comments

Comments
 (0)