diff --git a/pepper/cli.py b/pepper/cli.py index 0962c3e..6160df4 100644 --- a/pepper/cli.py +++ b/pepper/cli.py @@ -428,6 +428,7 @@ def run(self): if api.auth['expire'] < time.time()+30: logger.error('Login token expired') raise Exception('Login token expired') + api.req('/stats') except Exception as e: if e.args[0] is not 2: logger.error('Unable to load login token from ~/.peppercache '+str(e))