From 27c134644874193e1fa97ae6c510aa1e68e1c4ec Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 14 Jan 2018 01:24:17 -0500 Subject: [PATCH] Shorten FileNotFound warning output --- src/utils/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/utils.py b/src/utils/utils.py index 5d3e33d..5c83718 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -33,8 +33,7 @@ except FileNotFoundError: with open('config.json', 'w') as outfile: jsn.dump({'client_id': 0, 'info_channel': 0, 'owner_id': 0, 'permissions': 126016, 'playing': 'a game', 'prefix': [',', 'm,'], 'selfbot': False, 'token': 'str'}, outfile, indent=4, sort_keys=True) - raise FileNotFoundError( - 'FILE NOT FOUND : config.json created with abstract values. Restart run.py with correct values') + print('FILE NOT FOUND : config.json created with abstract values. Restart run.py with correct values') def setdefault(filename, default=None, json=False):