Skip to content

Commit

Permalink
Merge pull request #100 from vintasoftware/camel-case
Browse files Browse the repository at this point in the history
Not trying 'normal camel case' in if 'upper' fails
  • Loading branch information
filipeximenes committed Feb 26, 2016
2 parents 217950d + 9767d66 commit 1084291
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tapioca/tapioca.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ def _get_client_from_name_or_fallback(self, name):
if client is not None:
return client

normal_camel_case_name = camel_case_name[0].upper()
try:
normal_camel_case_name = camel_case_name[0].upper()
except Exception:
return None
normal_camel_case_name += camel_case_name[1:]

client = self._get_client_from_name(normal_camel_case_name)
Expand Down

0 comments on commit 1084291

Please sign in to comment.