Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pygeoip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pygeoip
Commits
7751df35
Commit
7751df35
authored
Apr 13, 2012
by
Jennifer Ennis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from vatsan/master
Fixed bug in __init__.py line 294 (NoneType not iterable).
parents
397e6303
cdd26722
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pygeoip/__init__.py
+2
-2
No files found.
pygeoip/__init__.py
View file @
7751df35
...
...
@@ -295,8 +295,8 @@ class GeoIP(GeoIPBase):
elif
self
.
_databaseType
in
(
const
.
CITY_EDITION_REV0
,
const
.
CITY_EDITION_REV1
):
rec
=
self
.
_get_record
(
ipnum
)
country_code
=
rec
[
'country_code'
]
if
'country_code'
in
rec
else
''
region
=
rec
[
'region_name'
]
if
'region_name'
in
rec
else
''
country_code
=
rec
[
'country_code'
]
if
rec
and
'country_code'
in
rec
else
''
region
=
rec
[
'region_name'
]
if
rec
and
'region_name'
in
rec
else
''
return
{
'country_code'
:
country_code
,
'region_name'
:
region
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment