diff options
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 82cc52ead8..e78b0dab89 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -2887,7 +2887,7 @@ if True: | |||
2887 | else: | 2887 | else: |
2888 | context['dl_dir'] = ProjectVariable.objects.get(project = prj, name = "DL_DIR").value | 2888 | context['dl_dir'] = ProjectVariable.objects.get(project = prj, name = "DL_DIR").value |
2889 | context['dl_dir_defined'] = "1" | 2889 | context['dl_dir_defined'] = "1" |
2890 | except ProjectVariable.DoesNotExist,BuildEnvironment.DoesNotExist: | 2890 | except (ProjectVariable.DoesNotExist, BuildEnvironment.DoesNotExist): |
2891 | pass | 2891 | pass |
2892 | try: | 2892 | try: |
2893 | context['fstypes'] = ProjectVariable.objects.get(project = prj, name = "IMAGE_FSTYPES").value | 2893 | context['fstypes'] = ProjectVariable.objects.get(project = prj, name = "IMAGE_FSTYPES").value |
@@ -2915,7 +2915,7 @@ if True: | |||
2915 | else: | 2915 | else: |
2916 | context['sstate_dir'] = ProjectVariable.objects.get(project = prj, name = "SSTATE_DIR").value | 2916 | context['sstate_dir'] = ProjectVariable.objects.get(project = prj, name = "SSTATE_DIR").value |
2917 | context['sstate_dir_defined'] = "1" | 2917 | context['sstate_dir_defined'] = "1" |
2918 | except ProjectVariable.DoesNotExist, BuildEnvironment.DoesNotExist: | 2918 | except (ProjectVariable.DoesNotExist, BuildEnvironment.DoesNotExist): |
2919 | pass | 2919 | pass |
2920 | 2920 | ||
2921 | return context | 2921 | return context |
@@ -2978,5 +2978,5 @@ if True: | |||
2978 | return response | 2978 | return response |
2979 | else: | 2979 | else: |
2980 | return render(request, "unavailable_artifact.html") | 2980 | return render(request, "unavailable_artifact.html") |
2981 | except ObjectDoesNotExist, IOError: | 2981 | except (ObjectDoesNotExist, IOError): |
2982 | return render(request, "unavailable_artifact.html") | 2982 | return render(request, "unavailable_artifact.html") |