Skip to content

Commit

Permalink
Misc. fixes in response to code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Yolken committed Feb 4, 2017
1 parent 6a0a1af commit 0ee1abf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion superset/assets/version_info.json

This file was deleted.

12 changes: 9 additions & 3 deletions superset/results_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def get(self, key):
value_file
)
except Exception as e:
logging.warn('Exception while trying to get %s: %s', key, e)
logging.warn('Error while trying to get key %s', key)
logging.exception(e)

return None
else:
value_file.seek(0)
Expand Down Expand Up @@ -85,7 +87,9 @@ def delete(self, key):
}
)
except Exception as e:
logging.warn('Exception while trying to delete %s: %s', key, e)
logging.warn('Error while trying to delete key %s', key)
logging.exception(e)

return False
else:
return True
Expand Down Expand Up @@ -116,7 +120,9 @@ def set(self, key, value, timeout=None):
self._full_s3_key(key)
)
except Exception as e:
logging.warn('Exception while trying to set %s: %s', key, e)
logging.warn('Error while trying to set key %s', key)
logging.exception(e)

return False
else:
return True
Expand Down

0 comments on commit 0ee1abf

Please sign in to comment.