Skip to content

Commit df4adb6

Browse files
jleclancheowais
authored andcommitted
Fix a potential crash when formatting errors (django-webpack#99)
1 parent d8577d8 commit df4adb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webpack_loader/loader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def get_bundle(self, bundle_name):
8787
assets['file'] = ''
8888
if 'error' not in assets:
8989
assets['error'] = 'Unknown Error'
90+
if 'message' not in assets:
91+
assets['message'] = ''
9092
error = u"""
9193
{error} in {file}
9294
{message}

0 commit comments

Comments
 (0)