Page MenuHomeDevCentral

D3565.id9277.diff
No OneTemporary

D3565.id9277.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, Feb 2, 06:33 (2 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2388736
Default Alt Text
D3565.id9277.diff (573 B)

Event Timeline