Skip to content

Commit

Permalink
Fixes #952: Improved exc message when CloseEnumeration context is None
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed Jan 15, 2018
1 parent 545aca8 commit 3a55495
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pywbem/cim_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -6032,7 +6032,9 @@ def CloseEnumeration(self, context, **extra):
# entire context is tested for None because the open/pull methods
# set the complete context to None when eos received.
if context is None:
raise ValueError('None is not a valid EnumerationContext')
raise ValueError("Invalid context: None "
"(Enumeration may be exhausted)")

self._imethodcall(
method_name,
namespace=context[1],
Expand Down

0 comments on commit 3a55495

Please sign in to comment.