| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,11 +106,6 @@ public static void tf_with(IObjectLife py, Action<IObjectLife> action) | |||
| 106 | 106 | py.__enter__(); | |
| 107 | 107 | action(py); | |
| 108 | 108 | } | |
| 109 | - catch (Exception ex) | ||
| 110 | - { | ||
| 111 | - Console.WriteLine(ex.ToString()); | ||
| 112 | - throw; | ||
| 113 | - } | ||
| 114 | 109 | finally | |
| 115 | 110 | { | |
| 116 | 111 | py.__exit__(); | |
@@ -126,11 +121,6 @@ public static void tf_with<T>(T py, Action<T> action) where T : IObjectLife | |||
| 126 | 121 | py.__enter__(); | |
| 127 | 122 | action(py); | |
| 128 | 123 | } | |
| 129 | - catch (Exception ex) | ||
| 130 | - { | ||
| 131 | - Console.WriteLine(ex.ToString()); | ||
| 132 | - throw; | ||
| 133 | - } | ||
| 134 | 124 | finally | |
| 135 | 125 | { | |
| 136 | 126 | py.__exit__(); | |
@@ -146,11 +136,6 @@ public static TOut tf_with<TIn, TOut>(TIn py, Func<TIn, TOut> action) where TIn | |||
| 146 | 136 | py.__enter__(); | |
| 147 | 137 | return action(py); | |
| 148 | 138 | } | |
| 149 | - catch (Exception ex) | ||
| 150 | - { | ||
| 151 | - Console.WriteLine(ex.ToString()); | ||
| 152 | - return default(TOut); | ||
| 153 | - } | ||
| 154 | 139 | finally | |
| 155 | 140 | { | |
| 156 | 141 | py.__exit__(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments