[yt-svn] commit/yt: samskillman: Don't actually raise an exception on this, but just set cosmology to 0.

Bitbucket commits-noreply at bitbucket.org
Thu Nov 17 13:22:03 PST 2011


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/68227951f9b3/
changeset:   68227951f9b3
branch:      yt
user:        samskillman
date:        2011-11-17 22:21:21
summary:     Don't actually raise an exception on this, but just set cosmology to 0.
affected #:  1 file

diff -r 39f7354e61643d0c9b89f5cdbda2569fb9a06c47 -r 68227951f9b3fd2ed391ef63c44fbb49c06760a0 yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -299,7 +299,7 @@
 
         try:
             use_cosmo = self._find_parameter("logical", "usecosmology") 
-        except KeyError:
+        except:
             use_cosmo = 0
 
         if use_cosmo == 1:

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list