Page MenuHomeDevCentral

D3565.diff
No OneTemporary

D3565.diff

diff --git a/src/upsection.py b/src/upsection.py
--- a/src/upsection.py
+++ b/src/upsection.py
@@ -83,8 +83,15 @@
def initialize_app():
- with open("config.yml") as fd:
- config = yaml.safe_load(fd)
+ try:
+ with open("config.yml") as fd:
+ config = yaml.safe_load(fd)
+ except FileNotFoundError as e:
+ print(f"Error: {str(e)}", file=sys.stderr)
+ print(
+ "Please consult the documentation : https://agora.nasqueron.org/Upsection"
+ )
+ sys.exit(1)
return {
"config": config,

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 09:35 (17 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259939
Default Alt Text
D3565.diff (573 B)

Event Timeline