Minor code improvements

This commit is contained in:
aceisace
2022-04-10 06:35:08 +02:00
parent f452135b42
commit 5cd04bda04
16 changed files with 84 additions and 95 deletions

View File

@@ -109,9 +109,7 @@ class Inkycal:
self.settings = settings
except FileNotFoundError:
print('No settings file found in given path\n'
'Please double check your settings_path')
return
raise SettingsFileNotFoundError
else:
try:
@@ -120,8 +118,7 @@ class Inkycal:
self.settings = settings
except FileNotFoundError:
print('No settings file found in /boot')
return
raise SettingsFileNotFoundError
# Option to use epaper image optimisation, reduces colours
self.optimize = True