Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-12656: Replace bare except #31

Merged
merged 1 commit into from
Nov 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ def _propertyContainerGet(container, name, asArray=False):

try:
return container.getAsPropertyListPtr(name)
except:
except Exception:
pass
if container.typeOf(name) == container.TYPE_PropertySet:
return container.getAsPropertySetPtr(name)
try:
return container.getAsPersistablePtr(name)
except:
except Exception:
pass
raise lsst.pex.exceptions.TypeError('Unknown PropertySet value type for ' + name)

Expand Down Expand Up @@ -183,7 +183,7 @@ class PropertySet:
# so catch the error and do nothing on Python 3.
try:
_typeMenu[unicode] = "String" # noqa F821
except:
except Exception:
pass

def get(self, name, asArray=False):
Expand Down Expand Up @@ -227,7 +227,7 @@ class PropertyList:
# so catch the error and do nothing on Python 3.
try:
_typeMenu[unicode] = "String" # noqa F821
except:
except Exception:
pass

def get(self, name, asArray=False):
Expand Down