Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. import json
  2.  
  3. # Get configuration
  4. try:
  5.     with open('bot.json') as configFile:
  6.         cfg = json.load(configFile)
  7.  
  8. except FileNotFoundError:
  9.     print("Configuration missing!")
  10.     exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement