Skip to content

Commit 95d1724

Browse files
authored
Clean-up try-except-pass patterns
1 parent 63f12cb commit 95d1724

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ansys/dpf/gate/session_grpcapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ def start_listening(session, bar, LOG):
6161
if len(chunk.state.state):
6262
LOG.warning(chunk.state.state)
6363
except Exception as e:
64-
pass
64+
raise e
6565
try:
6666
bar.finish()
67-
except:
68-
pass
67+
except Exception as e:
68+
raise e
6969

7070
@staticmethod
7171
def flush_workflows(session):

0 commit comments

Comments
 (0)