Skip to content

Commit

Permalink
[GH-10] Add warning when no groups are configured
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed May 8, 2014
1 parent cd3112a commit 5e854ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/dots
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ class Configuration(object):
with open(self.group_file, 'r') as f:
self.groups = f.read().splitlines()

if not self.groups:
warnings.warn("No configuration groups are currently enabled.", RuntimeWarning)

def save_to_file(self):
"""This will save the currently defined list of groups for this configuration
into the groups file"""
Expand Down

0 comments on commit 5e854ba

Please sign in to comment.