mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-05-06 18:27:27 +02:00
minor fixes
This commit is contained in:
@@ -451,8 +451,7 @@ class Settings:
|
||||
|
||||
|
||||
def get_settings():
|
||||
os.makedirs(os.path.dirname(CONFIG_PATH), exist_ok=True) # create dir if not exist
|
||||
os.makedirs(os.path.dirname(DATA_PATH), exist_ok=True)
|
||||
os.makedirs(os.path.dirname(CONFIG_PATH), exist_ok=True)
|
||||
|
||||
if not os.path.isfile(CONFIG_FILE) or os.stat(CONFIG_FILE).st_size == 0:
|
||||
write_settings(get_default_settings())
|
||||
|
||||
@@ -957,7 +957,8 @@ class Application(Gtk.Application):
|
||||
self.show_error_dialog(str(e))
|
||||
return
|
||||
except Exception as e:
|
||||
log("Append services error: " + str(e))
|
||||
from traceback import format_exc
|
||||
log("Reading data error: {}".format(format_exc()))
|
||||
self.show_error_dialog(get_message("Reading data error!") + "\n" + str(e))
|
||||
return
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user