Skip to content

Commit 768c57e

Browse files
authored
add exception handling for import queue, python2.7 uses capital Q, bump release version (#123)
Co-authored-by: Jonathan Cross <>
1 parent f6dcba8 commit 768c57e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

nomad/api/event.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import json
22
import threading
3-
import queue
43

54
import requests
65

76
from nomad.api.base import Requester
87
from nomad.api.exceptions import TimeoutNomadException
98

9+
try:
10+
import queue
11+
except ImportError:
12+
import Queue as queue
13+
1014

1115
class Event(object):
1216

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name='python-nomad',
8-
version='1.3.0',
8+
version='1.4.1',
99
install_requires=['requests'],
1010
packages=['nomad', 'nomad.api'],
1111
url='http://github.com/jrxfive/python-nomad',

0 commit comments

Comments
 (0)