Skip to content

Commit

Permalink
Fix pgmpy import err
Browse files Browse the repository at this point in the history
  • Loading branch information
lixfz committed Mar 15, 2024
1 parent 10c1a81 commit 23c1a86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ylearn/causal_discovery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ def __init__(self, *args, **kwargs):
class PgmProxy(BaseDiscovery):
def __init__(self, *args, **kwargs):
raise ImportError(_msg_pgm)
except SyntaxError as e:
_msg_pgm = f'{e}, re-install pgmpy and try again.'


class PgmProxy(BaseDiscovery):
def __init__(self, *args, **kwargs):
raise SyntaxError(_msg_pgm)

0 comments on commit 23c1a86

Please sign in to comment.