Skip to content

Commit

Permalink
Fix #30177 - Accessing f_globals property on a frame throws an except…
Browse files Browse the repository at this point in the history
…ion.

Thanks andresmac!
  • Loading branch information
jdhardy committed Feb 17, 2011
1 parent 8f6634a commit c380579
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -148,7 +148,7 @@ public class TraceBackFrame {
get {
object context;
if (_scopeCallback != null &&
_scopeCallback().TryGetValue(Compiler.Ast.PythonAst.GlobalContextName, out context)) {
_scopeCallback().TryGetValue(Compiler.Ast.PythonAst.GlobalContextName, out context) && context != null) {
return ((CodeContext)context).GlobalDict;
} else {
return _globals;
Expand Down

0 comments on commit c380579

Please sign in to comment.