Page MenuHomeDevCentral

D3565.id9181.diff
No OneTemporary

D3565.id9181.diff

diff --git a/src/upsection.py b/src/upsection.py
--- a/src/upsection.py
+++ b/src/upsection.py
@@ -75,8 +75,13 @@
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:
+ print("config.yml is not found.")
+ print("Please consult the documentation : https://agora.nasqueron.org/index.php?title=Upsection&redirect=no")
+ sys.exit(1)
return {
'config': config,

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 01:49 (11 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250078
Default Alt Text
D3565.id9181.diff (563 B)

Event Timeline