Page MenuHomeDevCentral

D3565.id9180.diff
No OneTemporary

D3565.id9180.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/Static_sites")
+ sys.exit(1)
return {
'config': config,

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 14:13 (21 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249918
Default Alt Text
D3565.id9180.diff (538 B)

Event Timeline