Skip to content

Commit

Permalink
Fix global debug variable
Browse files Browse the repository at this point in the history
  • Loading branch information
qwrrty committed Apr 5, 2015
1 parent 22ff360 commit bacd8d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PhotoCountyBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

photoReqPat = ''

global debug
debug = False

def guess_county(text, state):
cm = county_map.county_map()
Expand Down Expand Up @@ -202,6 +202,7 @@ def main(argv):
global startCat
global photoReqPat
global debug

debug = False
state = False

Expand All @@ -212,8 +213,9 @@ def main(argv):
parser.add_argument('--place', '-p', '--location', '-l',
help='specify location to start (required)',
required=True)
args = parser.parse_args(argv[1:])

args = parser.parse_args(argv[1:])
debug = args.debug
startCat = startCat % args.place
photoReqPat = re.compile(photoReqPatStr % args.place, re.I)

Expand Down

0 comments on commit bacd8d5

Please sign in to comment.