Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768671
D3565.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
573 B
Referenced Files
None
Subscribers
None
D3565.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3565: Verify config.yml exists
Attached
Detach File
Event Timeline
Log In to Comment