Skip to content

Commit

Permalink
Remove no unnecessary exception
Browse files Browse the repository at this point in the history
  • Loading branch information
MadOne committed Oct 25, 2024
1 parent e49542a commit 27f141a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions custom_components/weishaupt_modbus/modbusobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ async def close(self):
except ModbusException:
warnings.warn("Closing connection to heatpump failed")
return False
except: # ToDo: FIX THIS!
warnings.warn(
"Some uncatched Exceptions occoured while closing connection to the heatpump"
)
return True

def get_device(self):
Expand Down

0 comments on commit 27f141a

Please sign in to comment.