From 8347987efde69f8b22bb2fa1314e441f47ff38f5 Mon Sep 17 00:00:00 2001 From: happycod3r Date: Fri, 11 Aug 2023 00:55:11 -0400 Subject: [PATCH] [docs] Added LICENSE --- docs/LICENSE.md | 2 +- modules/stdops.py | 7 +++++-- setup.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/LICENSE.md b/docs/LICENSE.md index 54d341b..f67d481 100644 --- a/docs/LICENSE.md +++ b/docs/LICENSE.md @@ -1,6 +1,6 @@ # MIT License -## Copyright (c) 2022 Paul McCarthy +## Copyright (c) 2023 Paul McCarthy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/modules/stdops.py b/modules/stdops.py index ce2ddc2..795f4f9 100644 --- a/modules/stdops.py +++ b/modules/stdops.py @@ -66,12 +66,15 @@ def readFromFile(self, file_path: str) -> (str | bool): return contents else: print(f"File @'{file_path}' is exists but is empty") + return False except FileNotFoundError: print(f"File '{file_path}' not found.") + return False except IOError: print(f"Error reading file '{file_path}'.") + return False except Exception as e: print(repr(e)) - else: - return False + return False + return False \ No newline at end of file diff --git a/setup.py b/setup.py index a67a174..ea5e761 100644 --- a/setup.py +++ b/setup.py @@ -84,7 +84,7 @@ def setupConfig(self) -> None: self.config.addOption("user", "api_key_path", f"{self.KEY_CONFIG_FILE}") self.config.addOption("user", "organization", "org-8rsyvRZvyUBHhs4fJqATWK23") self.config.addSection("ui") - self.config.addOption("ui", "color", "#DCE4EE") + self.config.addOption("ui", "color", "#5ae7d6") self.config.addOption("ui", "ui_scaling", "100%%") self.config.addOption("ui", "theme", "System") self.config.addSection("chat")