Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/AboutDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
NoRequire = False
try:
from pkg_resources import require
except ImportError:
print "Cannot import 'require' from 'pkg_resources'"
except ImportError as imp_err:
print "Cannot import 'require' from 'pkg_resources':\n {0}".format(imp_err)
NoRequire = True

from NotePage import BasicNotepage
Expand Down
4 changes: 2 additions & 2 deletions Source/CameraUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
try:
import PIL
from PIL import Image, ImageTk, ExifTags
except ImportError:
raise ImportError("You do not seem to have the Python Imaging Library (PIL) installed")
except ImportError as imp_err:
raise ImportError("You do not seem to have the Python Imaging Library (PIL) installed:\n {0}".format(imp_err))

from Utils import OnOff, EvenOdd

Expand Down
4 changes: 2 additions & 2 deletions Source/CreateScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import picamera
from picamera import *
import picamera.array
except ImportError:
raise ImportError("You do not seem to have PiCamera installed")
except ImportError as imp_err:
raise ImportError("You do not seem to have PiCamera installed:\n {0}".format(imp_err))
PiCameraLoaded = False

def OutputPythonScript ( camera ):
Expand Down
8 changes: 4 additions & 4 deletions Source/PiCameraApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
import picamera
from picamera import *
import picamera.array
except ImportError:
raise ImportError("You do not seem to have PiCamera installed")
except ImportError as imp_err:
raise ImportError("You do not seem to have PiCamera installed:\n{0}".format(imp_err))

try:
from Tkinter import *
Expand All @@ -57,8 +57,8 @@
try:
import PIL
from PIL import Image, ImageTk, ExifTags
except ImportError:
raise ImportError("You do not seem to have the Python Imaging Library (PIL) installed")
except ImportError as imp_err:
raise ImportError("You do not seem to have the Python Imaging Library (PIL) installed:\n{0}".format(imp_err))

from AboutDialog import *
from PreferencesDialog import *
Expand Down