GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — check validity of self before _get_template_line · meldoessystemdesign/pythonVSCode@429c838

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pythonFiles/PythonTools
    • visualstudio_py_debugger.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pythonFiles/PythonTools/visualstudio_py_debugger.py‎

Copy file name to clipboardExpand all lines: pythonFiles/PythonTools/visualstudio_py_debugger.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -754,13 +754,14 @@ def get_django_frame_source(frame):
754754
except:
755755
pass
756756
if frame.f_code.co_name == 'render':
757-
origin = _get_template_file_name(frame)
758-
line = _get_template_line(frame)
759-
position = None
760757
self_obj = frame.f_locals.get('self', None)
761758
if self_obj is None:
762759
return None
763760

761+
origin = _get_template_file_name(frame)
762+
line = _get_template_line(frame)
763+
position = None
764+
764765
if self_obj is not None and hasattr(self_obj, 'token') and hasattr(self_obj.token, 'position'):
765766
position = self_obj.token.position
766767

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.