Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Making whitelist optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Luxxii committed Nov 20, 2019
1 parent b4a8011 commit b9e722e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firos/include/ros/rosConfigurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import os
import re
import json
import rostopic
Expand Down Expand Up @@ -56,6 +57,8 @@ def getWhiteList(restore=False):
'''
global whitelist
if whitelist == {} or restore:
if not os.path.isfile(C.PATH + "/whitelist.json"):
return {}
json_path = C.PATH + "/whitelist.json"
whitelist = json.load(open(json_path))

Expand Down

0 comments on commit b9e722e

Please sign in to comment.