Skip to content

Commit

Permalink
exit if no args and config not found
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-00 committed Jan 4, 2022
1 parent 6010f8e commit faff507
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
api = conf.get('conf', 'ampache_apikey')
if not user:
user = conf.get('conf', 'ampache_user')
else:
print()
sys.exit('Error: docs/examples/ampyche.conf not found and no arguments set')

limit = 4
offset = 0
Expand Down
2 changes: 1 addition & 1 deletion src/ampache.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def albums(self, filter_str: str = False,
'limit': str(limit),
'include': include}
if not filter_str:
data.pop('filter_str')
data.pop('filter')
if not add:
data.pop('add')
if not update:
Expand Down

0 comments on commit faff507

Please sign in to comment.