return 404 error on missing action
This commit is contained in:
parent
101210e4d4
commit
24f83e91f2
2 changed files with 5 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ def camelcase_to_underscores(argument):
|
|||
python underscore variable like the_new_attribute'''
|
||||
result = ''
|
||||
prev_char_title = True
|
||||
if not argument:
|
||||
return argument
|
||||
for index, char in enumerate(argument):
|
||||
try:
|
||||
next_char_title = argument[index + 1].istitle()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue