import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
import logging

logging.getLogger(__name__).addHandler(logging.NullHandler())

try:
    import zpar
except ImportError:
    raise ImportError("The 'python-zpar' package is missing. Run 'pip install python-zpar' to install it.") from None

Add check for python zpar when importing rstfinder.
Add check for python zpar when importing rstfinder.

  import logging
+ 
  logging.getLogger(__name__).addHandler(logging.NullHandler())
+ 
+ try:
+     import zpar
+ except ImportError:
+     raise ImportError("The 'python-zpar' package is missing. Run 'pip install python-zpar' to install it.") from None
+ 
Add check for python zpar when importing rstfinder.
## Code Before:
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
## Instruction:
Add check for python zpar when importing rstfinder.
## Code After:
import logging

logging.getLogger(__name__).addHandler(logging.NullHandler())

try:
    import zpar
except ImportError:
    raise ImportError("The 'python-zpar' package is missing. Run 'pip install python-zpar' to install it.") from None
