Skip to content

Commit

Permalink
remove optional argument for __get_or_create_app as we should always
Browse files Browse the repository at this point in the history
have both, because of key prefix
  • Loading branch information
Kyria committed Feb 15, 2018
1 parent 6c4d671 commit fac2bcf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions esipy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ def __init__(self, **kwargs):
self.esi_meta_cache_key
)

def __get_or_create_app(self, app_url, cache_key=None):
def __get_or_create_app(self, app_url, cache_key):
""" Get the app from cache or generate a new one if required """
if cache_key is None:
cache_key = app_url
app = self.cache.get(cache_key, None)

if app is None:
Expand Down

0 comments on commit fac2bcf

Please sign in to comment.