minor fixes

This commit is contained in:
DYefremov
2020-03-28 21:13:12 +03:00
parent 3ee8946541
commit 692885f6fd
2 changed files with 3 additions and 3 deletions

View File

@@ -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())

View File

@@ -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: