Skip to content

Commit 1275a35

Browse files
committed
Add default if debug is not set in config
1 parent 9961498 commit 1275a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saltapi/netapi/rest_cherrypy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def start():
7979
'''
8080
root, apiopts, conf = app.get_app(__opts__)
8181

82-
if apiopts['debug']:
82+
if apiopts.get('debug', False):
8383
# Start the development server
8484
cherrypy.quickstart(root, '/', conf)
8585
else:

0 commit comments

Comments
 (0)