Skip to content
Snippets Groups Projects
Commit 1c3c202b authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

Fix PEP8 errors

parent 406f7aa0
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ class DeviceHandler(BaseHandler): ...@@ -109,7 +109,7 @@ class DeviceHandler(BaseHandler):
""" """
try: try:
device = yield self.store.get_device(user_id, device_id) device = yield self.store.get_device(user_id, device_id)
except errors.StoreError, e: except errors.StoreError:
raise errors.NotFoundError raise errors.NotFoundError
ips = yield self.store.get_last_client_ip_by_device( ips = yield self.store.get_last_client_ip_by_device(
devices=((user_id, device_id),) devices=((user_id, device_id),)
......
...@@ -22,6 +22,7 @@ from tests import unittest, utils ...@@ -22,6 +22,7 @@ from tests import unittest, utils
user1 = "@boris:aaa" user1 = "@boris:aaa"
user2 = "@theresa:bbb" user2 = "@theresa:bbb"
class DeviceTestCase(unittest.TestCase): class DeviceTestCase(unittest.TestCase):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(DeviceTestCase, self).__init__(*args, **kwargs) super(DeviceTestCase, self).__init__(*args, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment