Skip to content

Commit

Permalink
Removed a debugging print statement that had slipped under the radar
Browse files Browse the repository at this point in the history
  • Loading branch information
sonofmun committed Jul 27, 2018
1 parent c82496b commit e83c5f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
@@ -1,3 +1,6 @@
### 2018-07-27 2.0.9 @sonofmun
- Removed a random print statement that had been used for debugging empty references

### 2018-06-25 2.0.8 @sonofmun

- Corrected error on the empty references exception from 2.0.7
Expand Down
2 changes: 1 addition & 1 deletion MyCapytain/__init__.py
Expand Up @@ -9,4 +9,4 @@
"""

__version__ = "2.0.8"
__version__ = "2.0.9"
1 change: 1 addition & 0 deletions MyCapytain/errors.py
Expand Up @@ -61,6 +61,7 @@ class UnknownCollection(KeyError, MyCapytainException):
""" A collection is unknown to its ancestor
"""


class EmptyReference(SyntaxWarning, MyCapytainException):
""" Error generated when a duplicate is found in Reference
"""
Expand Down
1 change: 0 additions & 1 deletion MyCapytain/resources/texts/local/capitains/cts.py
Expand Up @@ -251,7 +251,6 @@ def getValidReff(self, level=None, reference=None, _debug=False):
empties = [n for n in passages if n.rstrip('.') != n or n == '']
if len(empties) > 0:
message = '{} empty reference(s) at citation level {}'.format(len(empties), level)
print(empties)
warnings.warn(message, EmptyReference)

return passages
Expand Down

0 comments on commit e83c5f5

Please sign in to comment.