modified: srcdev/api.py

modified:   srcdev/moj_licznik.py
	modified:   srcdev/run.py
This commit is contained in:
TC
2023-11-04 13:08:22 +01:00
parent a6e7c6d773
commit 9b7255c291
4 changed files with 6 additions and 5 deletions

View File

@@ -357,7 +357,7 @@ class MojLicznik:
def save_main_charts(self, mp, vals, m_type):
for val in vals:
#try:
try:
logger.debug(f"save_main_charts: mp: {mp}, val: {val}, meter_type: {m_type}")
z = val["zones"]
if z[0]:
@@ -409,8 +409,8 @@ class MojLicznik:
cplt=val["cplt"]
)
#except:
# pass
except Exception as e:
logging.error(f"Wystąpił błąd: {str(e)}")
return None