Skip to content

Commit

Permalink
temp catch for curlys in welm
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrade committed Oct 2, 2020
1 parent 49e47ab commit fda9771
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/nom.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ def nom_file(filename,welm_map):
#print(welm_map[key]['format_string'])
#print(welm_map[key]['params'])
#print(swap_values)
event['message'] = welm_map[key]['format_string'].format(*swap_values)
try:
event['message'] = welm_map[key]['format_string'].format(*swap_values)
except:
event['message'] = welm_map[key]['format_string']
else:
event['message'] = welm_map[key]['format_string']
else:
Expand Down

0 comments on commit fda9771

Please sign in to comment.