summaryrefslogtreecommitdiffstats
path: root/virtualenv/pffedportal
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2013-03-21 14:16:11 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2013-03-21 14:16:11 (GMT)
commit181f0db4aadf7b6411648ad1f12414b3c54831ef (patch)
tree0453f2feed7eae35c6390ad2eefa81dafc509316 /virtualenv/pffedportal
parent904fc18a71f65b254671b38f2780498696d0f428 (diff)
downloadunivnautes-old-181f0db4aadf7b6411648ad1f12414b3c54831ef.zip
univnautes-old-181f0db4aadf7b6411648ad1f12414b3c54831ef.tar.gz
univnautes-old-181f0db4aadf7b6411648ad1f12414b3c54831ef.tar.bz2
[map] create login.html with geo locations
Diffstat (limited to 'virtualenv/pffedportal')
-rwxr-xr-xvirtualenv/pffedportal/create_loginhtml.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/virtualenv/pffedportal/create_loginhtml.py b/virtualenv/pffedportal/create_loginhtml.py
index aec7662..8d74cbb 100755
--- a/virtualenv/pffedportal/create_loginhtml.py
+++ b/virtualenv/pffedportal/create_loginhtml.py
@@ -29,7 +29,9 @@ def geo2idp(filename):
print >> sys.stderr, 'reading %s: %s' % (filename, e)
return {}
f.close()
- if not idp_list or not isinstance(idp_list, list):
+ if not idp_list:
+ return {}
+ if not isinstance(idp_list, list):
print >> sys.stderr, '%s does not contain a list' % filename
return {}
for idp in idp_list: