Skip to content
Permalink
Browse files

Add comment on try/catch, and remove explicit exception; #37. (#41)

* Add comment on try/catch, and remove explicit exception; #37.
  • Loading branch information...
ruebot authored and ianmilligan1 committed Mar 14, 2019
1 parent aed4e11 commit 10e9177cba8fa0bc212d2d84f61610a195d13717
Showing with 2 additions and 1 deletion.
  1. +2 −1 auk-notebook.ipynb
@@ -928,6 +928,7 @@
"source": [
"# Degree distribution of domains.\n",
"\n",
"# We wrap a few cells below in try/catch statements in case the Cloud doesn't produce graph files.\n",
"try:\n",
" plt.rcParams['figure.figsize'] = NETWORK_PLOT_FIGURE_SIZE # Set the figure size for the graph.\n",
" graph = nx.read_gexf(auk_gephi) # Import the graph.\n",
@@ -943,7 +944,7 @@
" plt.xticks(ind, labs, rotation='vertical')\n",
" plt.show()\n",
" \n",
"except OSError:\n",
"except:\n",
" print(\"Sorry, graph file is unavailable for analysis.\")"
]
},

0 comments on commit 10e9177

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.