~gabe/mortar unlisted

c469f96a78719a6ecc82c4073c92eea7496df0ad — Gabe Fierro 1 year, 5 months ago 823512a
updates
3 files changed, 6 insertions(+), 3 deletions(-)

M Makefile
M python/pymortar/pymortar/__init__.py
M python/pymortar/pyproject.toml
M Makefile => Makefile +1 -1
@@ 1,5 1,5 @@
APP?=mortar
RELEASE?=1.1.0-alpha2
RELEASE?=1.1.0-alpha3
MORTAR_REPOSITORY?=https://github.com/SoftwareDefinedBuildings/mortar-analytics
.PHONY: proto frontend


M python/pymortar/pymortar/__init__.py => python/pymortar/pymortar/__init__.py +4 -1
@@ 20,6 20,8 @@ import grpc
import logging
logging.basicConfig(level=logging.DEBUG)

class PyMortarException(Exception): pass

class Client:
    """Method to create a new Pymortar client



@@ 127,10 129,11 @@ class Client:
            for x in resp:
                if x.error != "":
                    logging.error(x.error)
                    raise PyMortarException(x.error)
                    break
                res._add(x)
        except Exception as e:
            if e.details() == 'parse jwt token err: Token is expired':
            if hasattr(e,'details') and e.details() == 'parse jwt token err: Token is expired':
                self._refresh()
                return self.fetch(request)
            else:

M python/pymortar/pyproject.toml => python/pymortar/pyproject.toml +1 -1
@@ 1,6 1,6 @@
[tool.poetry]
name = "pymortar"
version = "1.0.5"
version = "1.0.6-a1"
description = "Python tool for Mortar testbed"
authors = ["Gabe Fierro <gtfierro@cs.berkeley.edu>"]