<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ajay sahare</title>
    <description>The latest articles on DEV Community by Ajay sahare (@ajay_sahare).</description>
    <link>https://dev.to/ajay_sahare</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F846123%2F6d587f92-82d3-4406-a5fa-60da13284a13.jpg</url>
      <title>DEV Community: Ajay sahare</title>
      <link>https://dev.to/ajay_sahare</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ajay_sahare"/>
    <language>en</language>
    <item>
      <title>how to implemnt try and except to read data from RFID using sllurp</title>
      <dc:creator>Ajay sahare</dc:creator>
      <pubDate>Wed, 18 May 2022 03:31:54 +0000</pubDate>
      <link>https://dev.to/ajay_sahare/how-to-implemnt-try-and-except-to-read-data-from-rfid-using-sllurp-3jp0</link>
      <guid>https://dev.to/ajay_sahare/how-to-implemnt-try-and-except-to-read-data-from-rfid-using-sllurp-3jp0</guid>
      <description>&lt;p&gt;Hi,&lt;br&gt;
I want to implement to try and except in the following code if the connection is True then only I am able to read RFIDF tag .and I am not able to understand how slllrp Libary make a connection between Reader and Tag&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from sllurp import llrp
from twisted.internet import reactor
import logging
logging.getLogger().setLevel(logging.INFO)

def cb(tagReport):
    try:
        mylist = []
        tags = tagReport.msgdict['RO_ACCESS_REPORT']['TagReportData']
        if not len(tags)==0:
             mylist.append(tags)
        print(mylist[0][0]['EPC-96'])
    except:
         print('error')

factory = llrp.LLRPClientFactory(antennas=[1], duration=1,session=0,tx_power=0,start_inventory=True)

factory.addTagReportCallback(cb)
reactor.connectTCP('192.168.120.501', llrp.LLRP_PORT, factory)
reactor.run()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My code is working fine I can read the tag but I want to apply to try and except block and I do not understand how to do it in that code&lt;br&gt;
whenever my reader is connected only that time I can read the tag otherwise it goes under except block which method do I use to check the current status of the connection object?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Django Celery task is showing me "attribute error"?</title>
      <dc:creator>Ajay sahare</dc:creator>
      <pubDate>Tue, 12 Apr 2022 09:35:53 +0000</pubDate>
      <link>https://dev.to/ajay_sahare/django-celery-task-is-showing-me-attribute-error-3249</link>
      <guid>https://dev.to/ajay_sahare/django-celery-task-is-showing-me-attribute-error-3249</guid>
      <description></description>
    </item>
  </channel>
</rss>
