Skip to content

Commit 772a7cf

Browse files
rakshith91lmazuel
andauthored
Improve except (Azure#23168)
* Improve except * Update sdk/monitor/azure-monitor-query/azure/monitor/query/_helpers.py * Apply suggestions from code review Co-authored-by: Laurent Mazuel <lmazuel@microsoft.com> Co-authored-by: Laurent Mazuel <lmazuel@microsoft.com>
1 parent 538defa commit 772a7cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/monitor/azure-monitor-query/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 1.0.2 (Unreleased)
44

5-
- This version and all future versions will require Python 3.7+. Python 2.7 and 3.6 are no longer supported.
5+
- This version and all future versions will require Python 3.6+. Python 2.7 is no longer supported.
66

77
### Bugs Fixed
88

sdk/monitor/azure-monitor-query/azure/monitor/query/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def native_col_type(col_type, value):
118118
if col_type == "datetime":
119119
try:
120120
value = Deserializer.deserialize_iso(value)
121-
except: # pylint: disable=bare-except
121+
except Exception: # pylint: disable=broad-except
122122
# if there is any exception in deserializing the iso,
123123
# return the value to the user
124124
pass

0 commit comments

Comments
 (0)