Skip to content

Commit

Permalink
Import GLib.GError correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Vogelgesang committed Feb 19, 2014
1 parent 6c2f749 commit ac36254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concert/devices/cameras/uca.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ def _wrapper(instance):


def _translate_gerror(func):
from gi._glib import GError
from gi import GLib

@functools.wraps(func)
def _wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except GError as ge:
except GLib.GError as ge:
raise base.CameraError(str(ge))

return _wrapper
Expand Down

0 comments on commit ac36254

Please sign in to comment.