Skip to content

Commit

Permalink
add Exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Nov 16, 2024
1 parent 722848f commit 9965d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oc/od/kuberneteswatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ def loopforevent( self ):
except urllib3.exceptions.NewConnectionError as e:
# HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /api/v1/namespaces/abcdesktop/pods?timeoutSeconds=10&watch=True
# (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f61656a28b0>: Failed to establish a new connection: [Errno 111] Connection refused')
self.logger.fatal( "{type(e)} {e}" )
self.logger.fatal( f"{type(e)} {e}" )
self.watch.stop()
# stop the infinte loop
return

except Exception as e:
self.logger.debug( "{type(e)} {e}" )
self.logger.debug( f"{type(e)} {e}" )


def start(self):
Expand Down

0 comments on commit 9965d1f

Please sign in to comment.