D4rkC4t/DeptConvert — Issue #7: ValueError exception using adr2cp
Author: pabluk
Created: 2011-10-18 07:06:41+00:00
State: open

```
>>> deptfr.adr2cp(u"Communauté de Communes du Pays de Montmédy 20, Avenue de la Gare 55600 MONTMEDY France")
Traceback (most recent call last):
File "", line 1, in
File "/home/pablo/dev/virtenv/jurismarches/lib/python2.7/site-packages/geoconvert/deptfr.py", line 170, in adr2cp
if int(word) < 20200 or int(word) in [20223, 20900]:
ValueError: invalid literal for int() with base 10: '20,'
```