Skip to content

Commit b1a86ee

Browse files
delsimGibbsConsulting
authored andcommitted
Handle case of missing module file information (#224)
1 parent 4637aaf commit b1a86ee

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

django_plotly_dash/dash_wrapper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ def __init__(self, name=None, serve_locally=None,
156156
# Remember some caller info for static files
157157
caller_frame = inspect.stack()[1]
158158
self.caller_module = inspect.getmodule(caller_frame[0])
159-
self.caller_module_location = inspect.getfile(self.caller_module)
159+
try:
160+
self.caller_module_location = inspect.getfile(self.caller_module)
161+
except:
162+
self.caller_module_location = None
160163
self.assets_folder = "assets"
161164

162165
def get_asset_static_url(self, asset_path):

django_plotly_dash/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
2424
'''
2525

26-
__version__ = "1.1.4"
26+
__version__ = "1.1.5"

0 commit comments

Comments
 (0)