##// END OF EJS Templates
hooks: use safer method of exporting the RC_SCM_DATA, prevents JSON decode errors in case of None value
marcink -
r345:a3726eeb default
parent child Browse files
Show More
@@ -136,7 +136,10 b' def _extras_from_ui(ui):'
136 hook_data = ui.config('rhodecode', 'RC_SCM_DATA')
136 hook_data = ui.config('rhodecode', 'RC_SCM_DATA')
137 if not hook_data:
137 if not hook_data:
138 # maybe it's inside environ ?
138 # maybe it's inside environ ?
139 hook_data = os.environ.get('RC_SCM_DATA')
139 env_hook_data = os.environ.get('RC_SCM_DATA')
140 if env_hook_data:
141 hook_data = env_hook_data
142
140 extras = json.loads(hook_data)
143 extras = json.loads(hook_data)
141 return extras
144 return extras
142
145
General Comments 0
You need to be logged in to leave comments. Login now