Skip to content

Commit

Permalink
Merge branch 'main' into Rename-capitalized-CPP
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Nov 11, 2024
2 parents c6f8724 + c8c0e2d commit 3d3df60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions win32/Lib/win32pdhquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,11 @@ def __setstate__(self, volatilecounters):
self.volatilecounters = volatilecounters


class QueryError:
def __init__(self, query):
class QueryError(Exception):
def __init__(self, query: BaseQuery):
self.query = query

def __repr__(self):
return "<Query Error in %s>" % repr(self.query)
return f"<Query Error in {self.query!r}>"

__str__ = __repr__

0 comments on commit 3d3df60

Please sign in to comment.