[MediaWiki-commits] [Gerrit] labs...heritage[master]: Catch yet another exception

2017-08-09 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/370878 )

Change subject: Catch yet another exception
..


Catch yet another exception

Change-Id: I57f1d52fdb46195046fd6cd6afa264b5622056cc
---
M erfgoedbot/populate_image_table.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jean-Frédéric: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/erfgoedbot/populate_image_table.py 
b/erfgoedbot/populate_image_table.py
index 9396f4a..45fa968 100644
--- a/erfgoedbot/populate_image_table.py
+++ b/erfgoedbot/populate_image_table.py
@@ -132,7 +132,7 @@
 # All uppercase, same happens in other list
 # monumentId = monumentId.upper()
 return monumentId
-except (UnicodeDecodeError, TypeError) as e:
+except (UnicodeDecodeError, TypeError, IndexError) as e:
 raise CannotNormalizeException(e)
 
 

-- 
To view, visit https://gerrit.wikimedia.org/r/370878
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I57f1d52fdb46195046fd6cd6afa264b5622056cc
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/heritage
Gerrit-Branch: master
Gerrit-Owner: Lokal Profil 
Gerrit-Reviewer: Jean-Frédéric 
Gerrit-Reviewer: Multichill 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] labs...heritage[master]: Catch yet another exception

2017-08-09 Thread Lokal Profil (Code Review)
Lokal Profil has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370878 )

Change subject: Catch yet another exception
..

Catch yet another exception

Change-Id: I57f1d52fdb46195046fd6cd6afa264b5622056cc
---
M erfgoedbot/populate_image_table.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/heritage 
refs/changes/78/370878/1

diff --git a/erfgoedbot/populate_image_table.py 
b/erfgoedbot/populate_image_table.py
index 9396f4a..45fa968 100644
--- a/erfgoedbot/populate_image_table.py
+++ b/erfgoedbot/populate_image_table.py
@@ -132,7 +132,7 @@
 # All uppercase, same happens in other list
 # monumentId = monumentId.upper()
 return monumentId
-except (UnicodeDecodeError, TypeError) as e:
+except (UnicodeDecodeError, TypeError, IndexError) as e:
 raise CannotNormalizeException(e)
 
 

-- 
To view, visit https://gerrit.wikimedia.org/r/370878
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I57f1d52fdb46195046fd6cd6afa264b5622056cc
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/heritage
Gerrit-Branch: master
Gerrit-Owner: Lokal Profil 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits