Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Fixed authorize_required decorator not showing in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
WardPearce committed Dec 23, 2020
1 parent 42deb94 commit 865a63c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions backblaze/decorators.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from functools import wraps

from .exceptions import AuthorizeRequired


def authorize_required(func):
@wraps(func)
def _validate(*args, **kwargs):
if (hasattr(args[0], "context") and args[0].context.account_id) \
or args[0].account_id:
Expand Down
2 changes: 1 addition & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
author = 'WardPearce'

version = ''
with open('../backblaze/__init__.py') as f:
with open('../backblaze/base.py') as f:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE
).group(1)
Expand Down

0 comments on commit 865a63c

Please sign in to comment.