Skip to content

Commit

Permalink
Add handle exception
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Nicholls committed Apr 16, 2019
1 parent 1d36428 commit 722e0e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@

# If we cannot import pytac or at then mock them. This is a temporary fix
# because at is not on pypi.
class FieldException(Exception):
class pytac_exception(Exception):
pass

import pytac
pytac.exceptions.FieldException = FieldException
pytac.exceptions.FieldException = pytac_exception
pytac.exceptions.HandleException = pytac_exception

class Mock(MagicMock):
@classmethod
Expand Down

0 comments on commit 722e0e0

Please sign in to comment.