Skip to content

Commit

Permalink
Return data on cache dir creation failure
Browse files Browse the repository at this point in the history
Fixes issue david-caro#67
  • Loading branch information
jcmcken committed Mar 23, 2016
1 parent 656f629 commit e830d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foreman/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def _get_remote_defs(self):
os.makedirs(defs_path)
except:
logger.debug('Unable to create cache dir %s', defs_path)
return
return data
cache_fn = '%s/%s-v%s.json' % (
defs_path, self.version,
self.api_version,
Expand Down

0 comments on commit e830d87

Please sign in to comment.