Skip to content

Commit

Permalink
Add an importable class instance
Browse files Browse the repository at this point in the history
  • Loading branch information
synw committed Jun 24, 2018
1 parent 8003cc7 commit ace5a20
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ Output:

![Stack trace screenshot](docs/img/output.png)

Or use in a functionnal style:

```python
from goerr import tr


tr.err("Error message")
```

## API

### Methods:
Expand Down
2 changes: 1 addition & 1 deletion goerr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,4 @@ def _get_args(self, arg):
return ex, msg


err = Trace()
tr = Trace()

0 comments on commit ace5a20

Please sign in to comment.