Skip to content

Commit

Permalink
suppress SSL warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wahl committed Mar 31, 2015
1 parent 8b037de commit 2e57578
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Setting quota to a minimum of 20480 MB for all users of domain example.com:

seafadm -c ./seafadm.conf quota domain min example.com 20480

Setting quota to 1 MB for all users NOT in domain example.com:
Setting quota to 1 MB for all users NOT in domain example.com:share/link/

seafadm -c ./seafadm.conf quota domain not example.com 1

Expand Down
4 changes: 4 additions & 0 deletions seafadm
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ import ConfigParser
import json
import requests
import codecs

# suppress SSL warnings
requests.packages.urllib3.disable_warnings()

# less UTF-8-sensible print replacement
out = codecs.getwriter('utf-8')(sys.stdout)

Expand Down

0 comments on commit 2e57578

Please sign in to comment.