some formation adjustment
This commit is contained in:
parent
b3d72b2dc8
commit
cd62dd5312
2 changed files with 9 additions and 10 deletions
|
@ -9,7 +9,6 @@ class Utilities:
|
|||
with open(yaml_file, "r") as file:
|
||||
data = yaml.safe_load(file)
|
||||
return data
|
||||
|
||||
except (FileNotFoundError, PermissionError) as e:
|
||||
print(f"Error loading settings file: {e}")
|
||||
return
|
||||
|
@ -18,7 +17,6 @@ class Utilities:
|
|||
try:
|
||||
with open(yaml_file, "w") as file:
|
||||
yaml.dump(data, file)
|
||||
|
||||
except PermissionError as e:
|
||||
print(f"Error saving setings: {e}")
|
||||
|
||||
|
@ -41,7 +39,6 @@ class Utilities:
|
|||
progress = int((barsize / total) * current)
|
||||
rest = barsize - progress
|
||||
if rest <= 2: rest = 0
|
||||
|
||||
# Determine the number of digits in total
|
||||
total_digits = len(str(total))
|
||||
# Format current with leading zeros
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue