Even more coding style cleanup
Fixing some more pylint warnings:
W1401: Anomalous backslash in string
W0623: Redefining name 'name' from outer scope
W0702: No exception type(s) specified
E0102: name: function already defined line n
Change-Id: I5afcdb4771ce210390a79981937806e30900a93c
diff --git a/subcmds/upload.py b/subcmds/upload.py
index 84a5e44..39721ac 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -297,7 +297,7 @@
try:
# refs/changes/XYZ/N --> XYZ
return refs.get(last_pub).split('/')[-2]
- except:
+ except (AttributeError, IndexError):
return ""
def _UploadAndReport(self, opt, todo, original_people):